Guest_imported
New member
- Jan 1, 1970
- 0
Previusly i have used the windows scripting host to execute a program and then parse through the output of that program...
now under ASP.NET it seems that the wscript no longer exists at all!
I have tried using the shell() command and redirecting that to a text file so i can then read the output from the text file, but although the shell command exits with return value 0 (proscess complete), the text file i specified just doesnt exist
Can anyone tell me what namespace i can use or how to create a wshexec object, or why the textfile im specifying is not created? Or any other way i can execute a server side program on the server from an ASP.NET page
The program i am trying to execute is
"c:\program files\perforce\p4.exe" files //depot/...
eg:
shell("""c:\program files\perforce\p4.exe"" files //depot/...", vbminimisedfocus, true)
i have also tried:
shell("""c:\program files\perforce\p4.exe"" files //depot/... >> c:\output.txt", vbminimisedfocus, true)
and also written a batch file to do the file output:
shell("""c:\program files\perforce\p4tofile.bat""", vbminimisedfocus, true)
they all have not worked!
any help much appreciated...
now under ASP.NET it seems that the wscript no longer exists at all!
I have tried using the shell() command and redirecting that to a text file so i can then read the output from the text file, but although the shell command exits with return value 0 (proscess complete), the text file i specified just doesnt exist
Can anyone tell me what namespace i can use or how to create a wshexec object, or why the textfile im specifying is not created? Or any other way i can execute a server side program on the server from an ASP.NET page
The program i am trying to execute is
"c:\program files\perforce\p4.exe" files //depot/...
eg:
shell("""c:\program files\perforce\p4.exe"" files //depot/...", vbminimisedfocus, true)
i have also tried:
shell("""c:\program files\perforce\p4.exe"" files //depot/... >> c:\output.txt", vbminimisedfocus, true)
and also written a batch file to do the file output:
shell("""c:\program files\perforce\p4tofile.bat""", vbminimisedfocus, true)
they all have not worked!
any help much appreciated...