Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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!

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.

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.

at 07:00 /every:m,t,w,th,f notepad.exe
=====================================
If at first you don't succeed, you're about average.M2

![]() |
![]() |
![]() |

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