Results 1 to 2 of 2

Thread: Command-line switches

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Posts
    22

    Question

    I am wondering if anyone knows how to make it so you can send switches to your program and interpret them in your code. For example test.exe /1 and make it in the code of the program to display a message box saying you have entered 1.

  2. #2
    Addicted Member
    Join Date
    Mar 2000
    Location
    Gainesville, FL
    Posts
    131
    The Command$ variable holds the switches.


    in your form_load event, put:

    Code:
    call msgbox("You entered: " & command$)

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