command line

accessman2

Registered User.
Local time
Yesterday, 21:18
Joined
Sep 15, 2005
Messages
335
In VB6,

I go to project properties->Make->command line argument, I input some values over there.

After that, I go to make exe file. Why the exe file doesn't have command values?
Can we make the exe file with command line arguments?
 
You can use that to pass the executable information when opening. For example, I have in one of my programs, a command line argument listed as strOpenParams and then using the SubMain() I parse it when the program starts to pull it into the different parts.

So, running the program command line is like this:

C:\Program Files\MyProgramFolder\MyProgram.exe !f C:\Documents and Settings\Bob\Desktop\MyTestFile.xls !d 4/1/2007 !t s

So my program assigns everything past the MyProgram.exe to strOpenParams and then in the SubMain() it splits out the parts based on the ! mark. I used that one as I was having trouble with - and / in the possible inputs. So, that's how to use them.
 
So, VB6 cannot make exe file with command line argument itself, right. We have to manually place command line argument into the exe file.
Is it correct?
 
Yes, you have to open up the properties to create an argument that you can populate at runtime. What are you trying to accomplish?
 

Users who are viewing this thread

Back
Top Bottom