473,396 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

working with dos prompt

Hi to all,

I have a question. I am running a batch file which has one parameter such as user name. Now I want to pass another parameter such as a password from another batch file. In the first batch file it asks user name - for this I need to pass automatically through VB program. Please help me in this concept.


Thank you all.
Sep 8 '07 #1
6 1124
QVeen72
1,445 Expert 1GB
Hi,

I think u have to use the "Call Function" to run anothr Batch file:

Expand|Select|Wrap|Line Numbers
  1. CALL C:\MyNewBatch.BAT 
  2.  
REgards
Veena
Sep 8 '07 #2
hariharanmca
1,977 1GB
Hi,

I think u have to use the "Call Function" to run anothr Batch file:

Expand|Select|Wrap|Line Numbers
  1. CALL C:\MyNewBatch.BAT 
  2.  
REgards
Veena
Hi QVeen72, Can you explain where and how can we call it?
To call .bat file i use
Expand|Select|Wrap|Line Numbers
  1. shell("C:\MyNewBatch.BAT")
Sep 8 '07 #3
QVeen72
1,445 Expert 1GB
Hi Hari,

He wanted to call one more batch file in a BatchFile.
The Call function has to be written in the Calling or Main BatchFile.


Regards
Veena
Sep 8 '07 #4
Thank you for reply.

Actually I have written a batch file like

sqlldr userid=scott control=x:\abc.ctl log=x:\abc.log

When I run this, it will ask Password. Then immediately I need to pass the password through a password.bat this password.bat may contain password. It should pass to password at command prompt where the first batch file is waiting for password.

Is it possible ? Please reply anybody.

Thank you
Sep 11 '07 #5
QVeen72
1,445 Expert 1GB
Hi,

In your .bat you can directly give username/password:

Expand|Select|Wrap|Line Numbers
  1. sqlldr userid=scott/tiger  control=x:\abc.ctl log=x:\abc.log 
  2.  
If you don't want to hardcode it, or the password keeps changing, then drop and recreate the Batch file with username and password at run time from Front End.

Regards
Veena
Sep 11 '07 #6
Killer42
8,435 Expert 8TB
If I read the question correctly, what the OP needs is for the Password.Bat to effectively stack the password into standard input to be picked up by the program which prompts for it.

I don't know how you would go about this.

What about running your VB program first to prompt for the password, then have it generate and execute the batch file with the password included? Of course, you'd probably want to delete the batch file after running it.
Sep 12 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: lawrence | last post by:
I'm a beginner with Javascript and especially cross-browser Javascript. I got this working in IE, but not in Netscape 7. It seems like, in Netscape, every time I click on a button, the focus shifts...
1
by: sea | last post by:
I have administration client installed on one computer and the full version of db2 installed on the server -- this is DB2 7.2 workgroup edition, fixpak 7. On the server I can go to the command...
5
by: Rog | last post by:
Hello, I went to http://msdn.microsoft.com/library/default.asp? url=/library/en-us/dnaspp/html/aspnet- usingtreeviewiewebcontrol.asp and saved down the TreeviewControl.msi file and also...
1
by: Rog | last post by:
Hello, Yesterday I downloaded IEwebcontrols.exe and TreeviewControl.msi from http://msdn.microsoft.com/library/default.asp? url=/library/en-us/dnaspp/html/aspnet-...
13
by: joemac | last post by:
I'm just starting out with javascript and the following is not working as it should. The expected prompt dialog box never appears. <head> <script language="JavaScript"><!-- var name;...
7
by: Dabbler | last post by:
My gridview Delete command works until I install a confirm prompt as follows, then it does nothing. Any suggestions would be appreciated! protected void MyGridView_RowCreated( object sender,...
5
by: DamSexy | last post by:
This is just simple stuff I know, but I need help with it please. As you can see below I have asked for the DOB to be entered, but how do I get it to work out the persons age from their DOB to todays...
5
by: r.g. | last post by:
Hello, Recently, my PHP (5, as installed by the XAMPP package) stopped working, and won't let me run locally-served PHP files in my web browsers. I think (but I'm not sure) that the Apache...
1
by: mohaakilla51 | last post by:
Alright guys, I am really new to C++, and I wanted to, as my first project, create a command prompt, that pretty much just looks and works like a normal command prompt, except that it has more...
7
by: Ja NE | last post by:
(as first - thank you for all your help several years ago, and second - please apologise me for my clumsy enlgish) so, preface: some users on my photo related site sometimes enter (link) giant...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.