Darrell Porter
asked on
WSH VBScript Run Method - Generating error 800A01A8
I am not doing this from ASP, ASP.NET or any other web application. This is being executed from the command line.
I have Googled for an answer and had no success. I have searched here as well.
I am attempting to execute an external application, CLEANMGR.EXE, using VBScript's RUN method.
-------------------------- ---------- ---------- ---------- ---
DIM oRun
state="40"
cmmd="cleanmgr.exe /sagerun:" & state
Set oWshell = CreateObject("WScript.Shel l")
Set oRun = oWshell.Run(cmmd, 6 , True )
-------------------------- ---------- ---------- ---------- ---
This causes an 800A01A8 error in the line
Set oRun = oWshell.Run(cmmd, 6 , True )
after the external program executes and completes successfully.
I have Googled for an answer and had no success. I have searched here as well.
I am attempting to execute an external application, CLEANMGR.EXE, using VBScript's RUN method.
--------------------------
DIM oRun
state="40"
cmmd="cleanmgr.exe /sagerun:" & state
Set oWshell = CreateObject("WScript.Shel
Set oRun = oWshell.Run(cmmd, 6 , True )
--------------------------
This causes an 800A01A8 error in the line
Set oRun = oWshell.Run(cmmd, 6 , True )
after the external program executes and completes successfully.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.