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.
6 1124
Hi,
I think u have to use the "Call Function" to run anothr Batch file:
REgards
Veena
Hi,
I think u have to use the "Call Function" to run anothr Batch file:
REgards
Veena
Hi QVeen72, Can you explain where and how can we call it?
To call .bat file i use - shell("C:\MyNewBatch.BAT")
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
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
Hi,
In your .bat you can directly give username/password: -
sqlldr userid=scott/tiger control=x:\abc.ctl log=x:\abc.log
-
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
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.
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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-...
|
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;...
|
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,...
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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,...
|
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...
|
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...
| |