Computing.Net > Forums > Disk Operating System > Batch File Help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch File Help

Reply to Message Icon

Name: WesternWork
Date: February 24, 2008 at 20:56:38 Pacific
OS: XP
CPU/Ram: P4
Product: HP
Comment:

Hi everyone,

I have a batch file currently that will wake up (via WOL), certain computer with 2 minute intervals so when the employees come in, there is no network congestion due to everyone logging in at once.

That is all working fine, however I found a problem when I went to add the task to the scheduler on the server.

I don't want the script to run on weekends, as there is no need for the computers to be on.

Is there a way, by using a batch file, to make the script only run on weekdays? I have the syntax correct, however I don't know how to retrieve the 'day' variable.

Any help would be greatly appreciated!

Thanks!



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: February 25, 2008 at 01:34:07 Pacific
Reply:

If you contact me by e-mail (follow the instructions given by clicking on my Name I can send you a 16 bit tool that fit your needs. And this is not a DOS related issue strictly speaking.


0

Response Number 2
Name: alexanrs
Date: February 25, 2008 at 07:45:48 Pacific
Reply:

Honestly, if you knwo anything about programming, this should be easy. Get a free C/C++ (my fav. language) compiler and create a small exe that will return an ERRORLEVEL of 0 on weekdays and 1 on weekends.


0

Response Number 3
Name: Mechanix2Go
Date: February 26, 2008 at 01:53:00 Pacific
Reply:

at 07:00 /every:m,t,w,th,f notepad.exe


=====================================
If at first you don't succeed, you're about average.

M2



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Batch File Help

basic batch file help needed www.computing.net/answers/dos/basic-batch-file-help-needed/1019.html

DOS Batch file help www.computing.net/answers/dos/dos-batch-file-help/6382.html

batch file help please www.computing.net/answers/dos/batch-file-help-please/9905.html