Results 1 to 3 of 3

Thread: passing a Command$ before compiling

  1. #1

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    is there a way to give Command$ a value without making and exe? Because if you look here :

    http://forums.vb-world.net/showthrea...threadid=33509

    I'm still having the same problems

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Go to Project->Project1 Properties (or similar) and choose the Make tab. There should be a text box for command line arguments.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3
    Hyperactive Member
    Join Date
    Jun 2000
    Location
    Auckland, NZ
    Posts
    411

    That thread looks complete

    Good advice was given and there was no final post by yourself to say there was a problem. Perhaps this is a new problem which you want help with but you think it is related?

    Once you compile your exe, you may add command line options to the shortcut to your application. The Command$ variable which you get for Free from VB is available for you to read any command line arguments.

    This variable will give you literally exactly what was on the command line.

    If you want to test potential command line arguements before compiling then you simple go into the Project Properties | Make dialog box within VB, and tyep your command line arguments where it says "Command Line Arguments".

    Perhaps if this doesn't help, you could post the shortcut you are using to run your exe enclosed in quotes so that we can see the command line arguments for ourselves?

    Cheers
    Paul Lewis

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