Task Scheduler - Win 7 64-bit - problem running .bat file "Hello..."

Discussion in 'Windows 7 Help and Support' started by bagel466, May 23, 2012.

  1. bagel466

    bagel466 New Member

    May 23, 2012
    Likes Received:

    I'm having a problem trying to automatically run a basic .bat file in task scheduler in windows 7 64-bit.

    I have more complicated .bat files to schedule but I can't get a simple one to run.

    This is the .bat file:

    ECHO hello there...
    PING -n 1 -w 5000 >NUL

    It works fine manually - it opens a window and displays the message and then closes after 5 seconds - no problems.

    If I schedule it to automatically run in task scheduler nothing happens - no window appears - but it says its running.

    I did create a .bat file in the same directory containing:

    shutdown /r

    This launched fine using task scheduler - the computer restarted - great.

    Any ideas how to get a simple .bat file to execute in task scheduler other than restarting the computer?

    I'm losing my hair - it shouldn't be this difficult.

    #1 bagel466, May 23, 2012
    Last edited by a moderator: May 23, 2012

Share This Page