Results 1 to 5 of 5

Thread: Command Line Question

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    3
    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.

  2. #2
    Guest
    What do you mean?

    Code:
    Shell "Command.com copy /?", vbNormalFocus

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    3
    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.

  4. #4
    Guest
    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

  5. #5
    Guest
    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
  •  



Click Here to Expand Forum to Full Width