Re: Task scheduler not sending command line arguments
- From: "tlviewer" <tlviewerSHRUB@xxxxxxxxxxxxxxx>
- Date: Fri, 31 Mar 2006 17:16:39 -0800
Adam,
<ajrosen@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1143779247.489727.219010@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello all,
I'm pretty new to VBS scripting. I have a script I wrote that is being
scheduled as an automated task. The command line for the task is
"c:\program files\...\smartmon.vbs" --server=bds01
When the script runs, it is logging to the event log telling me that it
received no arguments on the command line (the --server=bds01 part
isn't getting to the program). It runs fine from the command line. I
have tried multiple accounts, with no luck on any (admin accounts, my
account, system account).
Why wouldn't the arguments get passed along? I don't see that I am
doing anything wrong here. Any help is greatly appreciated.
I'm surprised that the script executes at all. Add a host to the cmdline.
Set your working directory to the script's home folder.
cscript smartmon.vbs --server=bds01
working directory="c:\program files\..."
good luck,
tlviewer
.
- Prev by Date: Re: Searching for a Number in a Set of Numbers
- Next by Date: Re: call Javascript function and VBSript sub in one event handler
- Previous by thread: Re: call Javascript function and VBSript sub in one event handler
- Next by thread: Simple Script Problem
- Index(es):
Relevant Pages
|