Results 1 to 2 of 2
  1. #1
    Star Lounger
    Join Date
    Feb 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Scheduled task with a UNC path

    If I type:<pre>at mycomputer 14:00 otherserverpathbatchfile.bat</pre>

    the scheduled event is entered correctly on my PC. When the event triggers, it is deleted, but does not execute and there is no evidence as to why.
    I saw an article implying that the scheduler wakes up as LOCAL SYSTEM and has no network access, how do I change this?
    Ultimately I want to schedule the following from within a batch file<pre>at myserver 14:00 otherserverpathbatchfile.bat</pre>

    tia,
    Marty

  2. #2
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Scheduled task with a UNC path

    Marty,

    Try this:
    <pre>at mycomputer 14:00 cmd /c "otherserverpathbatchfile.bat"</pre>

    This will run the batch file in a command window and then terminate. You may also want to add a line to the BAT file for testing that dumps text to an output file (such as ECHO SUCCESS! Cut.txt), to provide confirmation of whether the batch executed or not.

    When working with BAT files, I always insert PAUSE statements in the file for debugging so that I can step through the process and make sure that it is working.
    -Mark

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •