#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2007
    Posts
    1
    Rep Power
    0

    .bat and .cmd files


    I have created a file called test.cmd. I need to schedule this file to run every Saturday. But while schedulinh I wrongly gave the file extension as .bat instead .cmd i.e while scheduling, I gave the file name as test.bat.

    The scheduler returns as an error saying, test.bat file doesn't exist.

    Is it not possibe to call a file with extension .cmd as .bat?

    please advice
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,648
    Rep Power
    4248
    You could try renaming the file to .bat then, or delete your scheduler command and re-add it with the correct extension.
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2007
    Posts
    42
    Rep Power
    8
    On the regular command prompt, you can also schedule programs to run at specific times using the at command.

    This should stop you from creating your own programs, and should be a little easier to do.

IMN logo majestic logo threadwatch logo seochat tools logo