Can parameters be sent to a VB executable from a VB application?
Printable View
Can parameters be sent to a VB executable from a VB application?
Shell "c:\myExecutable.exe Parameter1,Parameter2"
i used , as a parameter separator. U can use Command function in ur vb application to retrieve command line parameters. then u separate them at ,
Use a forward slash as your switch identifer. This is the more common
method. Then in your other program that is receiving the
parameters, use the "Command" function to read in the
command-line switches that have been passed, split on the / in
the Form_Load event.
VB Code:
Shell "c:\myExecutable.exe /Parameter1 /Parameter2"