![]() |
|
|
+ Search |
![]()
|
Feb 19th, 2002 22:57
Jeff McDonald, Manjula S, ashutosh sharma,
How can you pass arguments to the executable? Say I wanted to run
something like:
p_r1.exe 1 "test" ...
how are the args added?
VBScript to execute exe from asp:
<%
Const ForReading = 1
sDir = "c:\test\debug"
set oShell = Server.CreateObject("Shell.Application")
set oFolder = oShell.NameSpace(sDir)
' oFile is a FolderItem
set oFile = oFolder.ParseName ("p_r1.exe")
' response.write "Testing" & "<BR>"
' response.write oFile.Name & "<BR>"
' response.write oFile.IsFileSystem & "<BR>"
' response.write oFile.ModifyDate & "<BR>"
' response.write oFile.Size & "<BR>"
' response.write oFile.Type & "<BR>"
' response.write oFile.Path & "<BR>"
oFile.InvokeVerb
%>
© 1999-2004 Synop Pty Ltd