Re: Schedules Task to run Batch file



Karl pointed you in the right direction. I just wanted to add that it
sometimes helps to go to Control Panel/Scheduled Tasks and then go to
advanced - view log which may have helpful information. Also check the
security logs on both computers involved to see if any failed logons or
failed privilege use events [if enabled in Local Security Policy] to see if
anything helpful can be found there. --- Steve


"Vilem Sova" <Vilem Sova@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0726C332-293E-4A7D-A0C9-C4EB4688AAEF@xxxxxxxxxxxxxxxx
I have a batch file which I routinely run to copy some large files to my PC
from a server (with the XCOPY command). The batch file also contains a
following DIR command so that I can see that the files have been copied
over
(with the latest dates), and at the end is a PAUSE statement so that the
command prompt window stays open while I review the file dates. It all
works
very well

I also created a scheduled task to execute the batch file (just a one-off
execution while still testing). When I run the task, nothing happens for
a
few seconds, and then a command prompt screen flashes up and disappears
within a couple of milliseconds (too fast to get a screen dump), and the
files haven't been copied.

Any ideas as to why the batch file may not be executing properly?


.



Relevant Pages

  • Re: Application starts too soon
    ... The application runs froma a batch file. ... The batch file has my exe followed by a Shutdown command ... think the app tries to run, encounters an error, and exits. ... the app runs fine if I manually launch it after the command prompt ...
    (microsoft.public.windowsxp.embedded)
  • Re: DOS Environment not working
    ... It just shows the variables set by windows on startup, ... The batch file does not fail because I ... installed a errorlevel statement to echo a message.... ... I run the batchfile at the command prompt, but when I check the variables: ...
    (microsoft.public.windowsxp.general)
  • Re: Please help me with a batch file.
    ... The way I did the batch file, ... > ..and I run it from teh command prompt window by typing: X:\mybatchfile.bat. ... > the window to close when finished. ... >> The video files to encode are in folder called: ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: Can you set process priority for an exe?
    ... Open a command prompt ... and all other apps are very ... set the priority level of the process to LOW, ... Save the batch file to your desktop and see if it works now. ...
    (microsoft.public.windowsxp.general)
  • Re: Application starts too soon
    ... It sounded like your application is a batch file? ... It is always unreliable solution and will fail time to time when things ... I now have an XPE image that can ... > boot to a command prompt (dosn't sound like much, but it took a while to get ...
    (microsoft.public.windowsxp.embedded)