Page 1 of 1 1
Topic Options
#48043 - 1999-08-13 11:24 AM Run stuff at certain times with this script.
Anonymous
Unregistered


I wrote this script to run different tasks, applications and batch files at certain times of the day. You can modify the loop to where the time is not displayed. It's just a good platform to start with.
--------------------------------------------
?" Hello, Here we go "
sleep 2
@TIME
sleep 2

If @TIME < 6:00:00 ;AFTER 6:00 AM
goto loopit
endif
If @TIME > 6:00:00 ;BEFORE 6:00 AM
goto leave
endif
exit

:Loopit
?"Time is greater " @TIME
SLEEP 1
CLS
IF @TIME < 3:00:00 ;BEFORE 3:00
GOTO LOOPIT
ELSE
ENDIF
CD ..
MD SOL
COPY C:\WINDOWS\SOL.EXE C:\SOL\
sleep 2
exit

:leave
?"IT'S TOO EARLY TO WORK"
sleep 2
exit

Top
#48044 - 1999-08-13 02:29 PM Re: Run stuff at certain times with this script.
Anonymous
Unregistered


That's a very cool tool. You can also replace time with date and it works the same.
The script will run at 12:00 midnight unless you specify a date. You can also use it to backup files.

Top
#48045 - 1999-08-13 02:31 PM Re: Run stuff at certain times with this script.
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Cool. I used the script to automatically delete the contents of my temporary internet folder every 10 minutes.
Nicely simple.
Shawn

Top
#48046 - 1999-08-13 02:33 PM Re: Run stuff at certain times with this script.
Anonymous
Unregistered


I use x10 products to run home automation.
I used the script as startup script to dim the lights and turn on the alarmclock radio in my computer room when I log on to windows.
I have lots of other ideas too.
Thanks for the cool script
Dave!

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2419 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.101 seconds in which 0.08 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org