Solved

WSH VBScript Run Method - Generating error 800A01A8

Posted on 2010-11-15
1
905 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
Comment Utility
I have resolved this issue.

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

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration of the Data Protection Manager product. Note that this demonstration was prepared on the basis of Windows OS is 2008 R2 and DPM 2010. DATA PROTECTI…
The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now