I was just recently writing a program for a fake computer virus to freak my friends out. i disguised it in the form of a cmd prompt, but i need to know how to make it have a time delay start, so people will think it is a normal cmd window at first.
I was just recently writing a program for a fake computer virus to freak my friends out. i disguised it in the form of a cmd prompt, but i need to know how to make it have a time delay start, so people will think it is a normal cmd window at first.
Thread moved to Software Development
Just type : shutdown -s -t 60 -c "your message"and the computer will shut down after 60 seconds, you can increase the time by make change in "60".
If you're looking for a way to pause execution for a certain amount of time, check out the Sleep function. It takes the time in milliseconds, so you just need to multiply the times that you randomly generated by 1000.
Bookmarks