• Log in or sign up for an account here: https://www.sythe.org/login

Making a shutdown timer. need help with the timer part

mike_ftl

Member
Joined
Oct 19, 2008
Sythe Gold
5
Messages
85
Location
San Jose
i am making a shutdown timer for practice (and i need one that actually works how i need it to)
basically i got it to shutdown on demand, but i cant delay it. I have the GUI there and everything i just dont know how to put it together.
So what i need is a way to delay shutdown.exe using a combo box or somethig.

Ps i am using visual studio 2008.
Thanks.
(please help im tryin to get most of it done before school starts again)
 
Only shutdown timer I know of is to go thru.

Open command prompt via RUN and typing "CMD"

In CMD, type "shutdown/i" the menu will appear and you can set a timed delay for shutdown.

Other than that I have no idea.
 
Only shutdown timer I know of is to go thru.

Open command prompt via RUN and typing "CMD"

In CMD, type "shutdown/i" the menu will appear and you can set a timed delay for shutdown.

Other than that I have no idea.
i think if i did that then the program would have to make a new timer file everytime i pressed start timer?

i dont know. Thanks for you help though
 
Shutdown /i is for silly people. Real men use the command line arguments.

VB has a function called Shell().

To shutdown in 60 seconds, you would do this:
Code:
Shell("shutdown /s /t 60")

The string passed to Shell() is the command that is going to run, as if you would have ran it directly from the command line or used a batch file.

To see what else you can do with shutdown, it would be wise to look at the docs. (shutdown /?)
 
Shutdown /i is for silly people. Real men use the command line arguments.

VB has a function called Shell().

To shutdown in 60 seconds, you would do this:
Code:
Shell("shutdown /s /t 60")

The string passed to Shell() is the command that is going to run, as if you would have ran it directly from the command line or used a batch file.

To see what else you can do with shutdown, it would be wise to look at the docs. (shutdown /?)
Sounds good.
Only problem is i dont know how to use the dropbars and stuff.
 
Drop bars?

There is an entire tool box of controls... not to mention, they are drag and drop. Surely you can figure that out? :-)
 
Runescape Gamblingrunescape gambling
Back
Top