Re: Run .bat as Scheduled Task doesn't work, but manual execute wo
From: Bonj (benjtaylor)
Date: 11/06/04
- Next message: MikeD: "Re: Parameter name re-use - Opinions"
- Previous message: RonW_at_no_domain.invalid: "Parameter name re-use - Opinions"
- In reply to: hking: "Re: Run .bat as Scheduled Task doesn't work, but manual execute wo"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 6 Nov 2004 16:56:37 -0000
cd\CWDScripts
could have dependency on the directory that the batch file is started in,
which could differ if it's run by the task scheduler.
"hking" <hking@discussions.microsoft.com> wrote in message
news:E1480F97-CD85-4207-8ACF-D7C52A6FAA34@microsoft.com...
> This is my bat file:
>
> net use R: /delete
> net use R: \\wvdl89\cwd
> d:
> cd\CWDScripts
> cscript /nologo ProcessCWDResults.vbs
> net use R: /delete
>
> The script does some various things with windows script host and does
> some
> work with Excel and Access. It seems to hangup when it opens the Access
> application and calls a procedure located in an Access module.
>
> I can't figure out what the difference is between executing the bat file
> manually versus as a scheduled task.
>
>
> "Veign" wrote:
>
>> What hangs? the .bat file or the script?
>>
>> What does the script do, the .bat file do?
>>
>> --
>> Chris Hanscom - Microsoft MVP (VB)
>> http://www.veign.com
>> --
>>
>> "hking" <hking@discussions.microsoft.com> wrote in message
>> news:9FEA5DDA-12B2-4F8B-A238-DB15141375EE@microsoft.com...
>> > I have a vb script that is executed from a .bat file. When I fire off
>> > the
>> > .bat file manually it works fine. When I run it as a Scheduled Task
>> > using
>> > CMD.exe it almost finishes and then hangs. I'm using the same admin
>> account
>> > for both scenarios. This is after a Windows Server 2003 upgrade. Any
>> > thoughts?
>>
>>
>>
- Next message: MikeD: "Re: Parameter name re-use - Opinions"
- Previous message: RonW_at_no_domain.invalid: "Parameter name re-use - Opinions"
- In reply to: hking: "Re: Run .bat as Scheduled Task doesn't work, but manual execute wo"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|