Click to See Complete Forum and Search --> : Passing a parameter to an exe prior to exectuing it.
Andrew Kiss
Sep 8th, 2000, 09:36 AM
I have an app with which I want to be able to pass a parameter to and when it executes use that parameter to determine what it does next.
Any help would be much appreciated, thanks in advance.
Shafee
Sep 8th, 2000, 10:17 AM
Hello Andrew,
Try using the Command function. It returns anything entered after the exe file.
Clunietp
Sep 8th, 2000, 10:30 AM
Sub Main()
Msgbox Command$
End Sub
You just have to use InStr (or any other string manipulation function) to parse the command line to look for your parameters
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.