|
-
Jul 2nd, 2001, 09:11 AM
#1
Thread Starter
New Member
Activex exe
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.
-
Jul 2nd, 2001, 12:49 PM
#2
Hyperactive Member
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.
-
Jul 4th, 2001, 08:57 AM
#3
Thread Starter
New Member
It really helps
Thank you a lot
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|