answersLogoWhite

0


Best Answer

Look into scheduling using the AT command.

Schedule the program to run once:
AT 2am /NEXT:Thursday "batch_file.bat"

The above command will set batch_file.bat to run at 2AM on the next Thursday.


Schedule the program to run every week:
AT 2am /EVERY:Thursday"batch_file.bat"

This command is similar, but sets batch_file.bat to run at 2AM every week on Thursday.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you make a batch file run a command on a specific date automatically and not when you click it?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you name a batch program?

Assuming you mean a shell script (AKA batch file), you simply add a .bat as the extension to any plaintext file. There is no limitation for the actual filename aside from this (except for regularly unallowed charachters like > and /). For instance, if you wanted to name your batch file hello world, you would open up a new notepad document, enter your code, then save as File Name: hello world.bat and change the Save as Type: All Files. Windows automatically recognizes any file with the .bat extension as an executable batch file, so to run it, you would just double-click it like any other document or file. To edit the batch file again, you can right click it and select Edit, or use notepad to open it from its respective location. Hope that answers your question.


How do you open a jar file on a mac?

You double-click on it. You can indeed launch a jar file from the command line, with the following command: java -jar yourfile.jar As well as this you can assign "Jar Launcher" as the default app. to use when you double-click a jar file, as follows (I don't believe you need the developer tools installed for this): Click once on the .jar file in the Finder and then from the menubar in the Finder select File -> Get Info". Click on "Open with" and from the popup menu select "Other". A file browser window will open. In this window, go to the /System/Library/CoreServices folder and select 'Jar Launcher'. Then make sure the "Always Open With" checkbox is checked and then click Add. Then click the "Change all" button so that any jar file will be opened automatically. Finally, close the Info window and now when you double-click any of your jar files they should run automatically.


How do you open Command Prompt in school when the command prompt is blocked as well as run?

open notepad (right click new word doc) type in this @echo off command comand.com pause save this as somthing.bat the .bat is importaint now save this to your desk top at school and click on it that will open CMD


Steps how to quit a computer program?

on a mac you can click COMMAND Q (file, quit....) on a PC you can click ALT F4 (you also can just press X on the top right side)


How do you fix environment variable system variable pathtext command and value info?

Start > right-click My Computer > Properties > Advanced > Environment Variables

Related questions

How do you make a batch file that talks to you?

1. Click on the Start Menu 2. Click on the Run command 3. Type in: cmd 4. Type in: help This should help you a lot with commands. Use: help <command> for details on a certain command. Example: help echo Use the echo command to make the batch file talk. Example is: @echo echo "This is what they will see" Make sure to include the ""s.


How do you get a full screen batch file on windows vista?

You can't make the batch file automatically open up in fullscreen mode, but you can do this: @echo off mode 800 "Commands here" This will open the batch file in a rather larger-than-normal window, but it will not be in fullscreen, the user of the batch file must click the maximize button to make it fullscreen.


Can Command Prompt be open from any folder?

There are some quick and easy steps for this. Follow them wiselyHold down the shift key and right click on any folder in Windows 7Select the open command Window there.The command prompt will open automatically.


How to view what a .bat file does without running batch?

Right click on it, then click edit.


Where can you get a program that can execute basic batch commands without using notepad?

It is called Command Prompt and it comes with Windows operating systems NT through Vista. You can access the command prompt by clicking Start/Run... , typing CMD, and then press ENTER or click the OK button.


What command automatically adjusts the height and width of cells to match their contents?

double click on the line between a and b or 1 and 2 ECT for each number or letter :)


What does a bat document mean?

"Bat" is short for "batch" which is a type of scripting language for computers. They're basically just text files which you can write to do simple tasks for you. To read one (on Windows) right-click the file, then choose "open with" and select Notepad. Further reading: http://en.wikipedia.org/wiki/.bat A batch file is a text file that contains a sequence of commands for a computer operating system. It's called a batch file because it batches (bundles or packages) into a single file a set of commands that would otherwise have to be presented to the system interactively from a keyboard one at a time. A batch file is usually created for command sequences for which a user has a repeated need. Commonly needed batch files are often delivered as part of an operating system. You initiate the sequence of commands in the batch file by simply entering the name of the batch file on a command line.


What does a document mean?

"Bat" is short for "batch" which is a type of scripting language for computers. They're basically just text files which you can write to do simple tasks for you. To read one (on Windows) right-click the file, then choose "open with" and select Notepad. Further reading: http://en.wikipedia.org/wiki/.bat A batch file is a text file that contains a sequence of commands for a computer operating system. It's called a batch file because it batches (bundles or packages) into a single file a set of commands that would otherwise have to be presented to the system interactively from a keyboard one at a time. A batch file is usually created for command sequences for which a user has a repeated need. Commonly needed batch files are often delivered as part of an operating system. You initiate the sequence of commands in the batch file by simply entering the name of the batch file on a command line.


How do you get around access denied in command prompt?

Right click your command prompt and click open as administrator.


How do you access the command prompt?

Click "Start", Go to "RUN" Type "cmd" click ok. You will get command prompt


How do you sync your ipod touch?

Plug it in your computer and bring up iTunes, then if your iPod doesn't automatically sync with iTunes you can click File and then click sync, or if you want to sync specific things click on your iPod under "Devices on the left then click the category of the specific thing on the tabs shown above the picture of your iPod and then at that page select what you want want to sync and click either apply or sync.


Which command deletes a print job from a queue?

I dont know the Command, You can just right click on the Job and click 'Cancel'.