Hello Everybody,
I need to know how to write an exe , either a standard one or an activex exe, that takes parameters when calling it from an asp page.
Can it be done? How?
Thank you in advance.
Printable View
Hello Everybody,
I need to know how to write an exe , either a standard one or an activex exe, that takes parameters when calling it from an asp page.
Can it be done? How?
Thank you in advance.
Do you mean like a command line parameters, or properties of an object.
Command Line parameters are easy. You simply use the Command$ keyword.
So if you wanted to pass a help parameter as "-h" you would read it using the following:
VB Code:
'============================== 'To use Command, you program has to 'be started from Sub Main. This is because 'the Command generally plays a role in 'deciding what forms are or are not shown. 'So place this code in a module. '============================== Sub Main() If Left$(Command$,2)="-h" then msgbox "help command was called" Else msgbox "no parameters' end if end sub
This could be compiled into an exe, and called like: project1.exe -h
If you have multiple parameters, you usually use the Split command to split on the delimiter like "-" in my example, then loop through the array.
If this isn't want you wanted, then I can try again later.
Hope this helps.
It really helps
Thank you a lot