Solved

WSH VBScript Run Method - Generating error 800A01A8

Posted on 2010-11-15
1
913 Views
Last Modified: 2012-05-10
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.Shell")
 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.

0
Comment
Question by:WalkaboutTigger
1 Comment
 
LVL 15

Accepted Solution

by:
WalkaboutTigger earned 0 total points
ID: 34140713
I have resolved this issue.

Removing the SET from the beginning of the line fixed the issue.
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many companies are making the switch from Microsoft to Google Apps (https://www.google.com/work/apps/business/). Use this article to learn more about what Google Apps has to offer and to help if you’re planning on migrating to Google Apps. It is …
User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question