Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shortcut to batch file won't honor the ? to allow me to key parameters

Status
Not open for further replies.

moreCA

Programmer
Feb 11, 2003
68
US
Using WinXP Pro. I have a shortcut to a DOS batch file that I need to key in some parameters. A question mark at the end of the target command line should give me a parameter box and wait for me to enter them, but it does not. I used a shortcut in this way in Win98 and it never gave any problems. Any ideas on this?

Thanks,
CA
 
A good link linney, (although I am with William Allen who suggest formally scripting input boxes in your link).

What happens if you call COMMAND.COM instead of the native use of CMD.EXE?

I honestly never new there was a ? input box available under earlier release of Windows. I just wrote the routines.
 
i thought it was the % that accepted input in batch files.
 
You are correct eyec about accepting input in batch files with the %, although the original question is talking about the ? in the shortcut to the batch file. The ? is supposed to tell the shortcut to give a input box for the user to key in parameters.

Guys...I'm a VB programmer so I have the means to get this done, but I thought I would take the easiest route, seeing that I already was using this batch file/shortcut way of doing a particular task in Win98. If it comes down to creating a program in VB to do the same thing, then so be it. Thanks for the input though.

CA
 
i thought the ? was usually used to query the "command" help parameters or switches available for the "command".

not having W98 available i am going from memory and you know what they say the first thing to go when you get old is - i can't remember.[bigcheeks]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top