Does anyone know how to get an application to display the switches back out to a DOS window?
EX:
You type: copy /?
You get a list of all the switches you can use with copy.
Printable View
Does anyone know how to get an application to display the switches back out to a DOS window?
EX:
You type: copy /?
You get a list of all the switches you can use with copy.
What do you mean?
Code:Shell "Command.com copy /?", vbNormalFocus
No my application accepts command lines and if the user types /? I want my application to put the list of command lines in his dos window.
The Command keyword will retrieve the argument used when starting your App.
Code:Private Sub Form_Load()
'Prints the Command Line argument
Print Command$
End Sub
Code:If Instr(text1, "/copy") Then
Open "C:\doswindow.bat" for output as #1
Print #1, "@ECHO OFF"
Print #1, "ECHO /A - Ascii Files"
Print #1, "ECHO /B - Binary Files"
Print #1, "ECHO Blah Blah Blah"
Print #1, "ECHO Thank you for using my program ;]."
Close #1
Shell "C:\doswindow.bat", VbNormalFocus