Try using...
call shell.run("CSCRIPT c:\directory1\myscript.vbs",1,true)
Dan
-----Original Message-----
From: nabil [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 17:48
To: ActiveServerPages
Subject: vbscript run commandline problem
Hi,
I was trying to run a vbscript from ASP page. Knowing that the ASP page
have administrative permissions.
.bat files are running correctly, but the .vbs fails to show the result
no error messages are returned to screen!!!
Code used:
Dim shell
Set shell=Server.CreateObject("WScript.Shell")
'the following does not fail but does not perform the task
call shell.run("c:\directory1\myscript.vbs",1,true)
'the following command works perfect
call shell.run("c:\directory1\myscript2.bat,1,true)
set shell=nothing
any suggestions
---
You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
%%email.unsub%%
_____________________________________________________________________
This e-mail has been scanned for viruses by the WorldCom Internet Managed
Scanning Service - powered by MessageLabs. For further information visit
http://www.worldcom.com
_____________________________________________________________________
This e-mail has been scanned for viruses by the WorldCom Internet Managed Scanning
Service - powered by MessageLabs. For further information visit http://www.worldcom.com
---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]