Hello,
Is there a way to pass command line arguments on the actual .exe file and NOT its shortcut ?
Printable View
Hello,
Is there a way to pass command line arguments on the actual .exe file and NOT its shortcut ?
VB6 has Command() function that returns command line arguments passed to an executable.
For sample code just search forum - there are many out there.
yea.. the Command() function returns command line arguments.. BUT im not talking bout that.
Im saying, you cannot assign arguments IF the file is not a SHORTCUT.. only SHORTCUTS can have command line arguments assigned and i need it on the actual .exe.
Not sure I understand... :confused:
Wouldn't the following be what you're after?
As you see that isn't a shortcut - you're actually shelling the program itself.Code:Shell "c:\myprogram.exe arg1,arg2,arg3"
In your app on form_load (or sub main) get those args and parse them.