VB Script to automate Excel does not run as Sheduled Task

D

dan artuso

Hi All,
I have a VB Script that does some excel automation. Basically it parses a
text file and builds a spreadsheet from the data within.
The OS is Win2K Server.
The script runs fine if run 'manually' but always hangs if run as a Sheduled
Task.

Has anyone else seen this problem? I should mention that *any* script that
automates Excel will not run as a Scheduled Task.
 
S

Steve Yandl

Do scripts that don't have anything to do with Excel run?

How do you launch the script manually? How do you launch as a scheduled
task?

If your script is named myscript.vbs, try scheduling
wscript.exe myscript.vbs
if that isn't the way you're doing things now. You may need to have the
complete path to wscript.exe but probably not.

Steve
 
D

dan artuso

Hi,
Manual means double clicking the vbs file.
For a scheduled Task, we simply schedule it and wait for ir to run.
The task does start and we can see the instance of excel in memory, it just
hangs though.


Dan Artuso
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top