• Scheduled task with a UNC path

    Author
    Topic
    #402289

    If I type:

    at mycomputer 14:00 otherserverpathbatchfile.bat

    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

    at myserver 14:00 otherserverpathbatchfile.bat

    tia,
    Marty

    Viewing 0 reply threads
    Author
    Replies
    • #802601

      Marty,

      Try this:

      at mycomputer 14:00 cmd /c "otherserverpathbatchfile.bat"

      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! C:out.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.

    Viewing 0 reply threads
    Reply To: Scheduled task with a UNC path

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: