[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

WSH VBScript Run Method - Generating error 800A01A8

Posted on 2010-11-15
1
Medium Priority
?
929 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
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 create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

650 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