Subject: | |
From: | |
Reply To: | |
Date: | Fri, 22 Nov 2002 13:37:53 -0800 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
On Friday 22 November 2002 13:20, [log in to unmask] wrote:
> In W95, the
> shortcut has "batfile.bat ?", and the ? does the trick. I have no idea how
> to do the same thing on W2K. Anyone?
Unfortunately, the "?" trick only works if it is the ONLY thing on the command
line -- I wanted to start a mysql client and prompt for the "name" of the
user to connect as -- thinking the "?" got substituted in wherever it
appeared, I tried "mysql -u ? -h db.system.name database" No go with the
other "parameters" on the line -- rather annoying...
> If someone has some clever bit of Windows Scripting Host scripting
> or vbscript, it would be great if that hid the password as typed.
I eventually had to do it this way -- it ends up being a 3-5 line WSH file
(which is on a different system, so I can't bring it up for the "specifics"
right now). The basic premise being as follows:
[dim statements for a string and a "system" item]
x=input("prompt","title","default") [or however the "input" parameters are
laid out]
[the "system item" is instantiated]
[the "run" method of the "system item" is invoked with "x" appended to the
command line]
If you look in the windows scripting/vbscript help files, you'll find what you
need for getting input and "executing a process". If you can't find this,
let me know and I'll dig up the command file
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|