|
-
Jul 13th, 2000, 03:17 PM
#1
Thread Starter
New Member
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.
-
Jul 13th, 2000, 03:26 PM
#2
What do you mean?
Code:
Shell "Command.com copy /?", vbNormalFocus
-
Jul 13th, 2000, 03:39 PM
#3
Thread Starter
New Member
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.
-
Jul 13th, 2000, 03:49 PM
#4
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
-
Jul 13th, 2000, 03:51 PM
#5
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|