Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Loading a file into a program at startup

Hi, I have a challenge!

U all know this: "shell("notepad.exe textfile.txt",1)"

I am replacing "notpad.exe" with my program "loadfile.exe".

The u get "shell("loadfile.exe textfile.txt",1)"

Now, how do I get "loadfile.exe" to pick up "textfile.txt"?

I need the answer to be in Visual Basic 6.0 code PLEASE.

I hope u understand my challenge. :)
[398 byte] By [villvest] at [2007-11-11 10:13:27]
# 1 Re: Loading a file into a program at startup
To take parameters from cmd line u can use the built-in function : "Command$()"
try to make this in your loadfile.exe load event :
MsgBox Command$
and shell() it the result in the msgbox will be : "textfile.txt"
Amahdy at 2007-11-11 17:22:57 >
# 2 Re: Loading a file into a program at startup
Great!!!!!! ;)

Thanks
villvest at 2007-11-11 17:23:57 >