Page 1 of 1

Reboot

Posted: Thu Mar 18, 2004 10:13 pm
by Joey
Is there a command in PB to restart my computer? I'm just interested, as I couldn't find one myself.

Posted: Fri Mar 19, 2004 12:13 am
by TerryHough
Don't think so... but I wrote one in PB. An executable is available at

http://pureproject.reelmedia.org/users/ ... reboot.zip

Run it from the command line with this command
REBOOT /?
to see actual usage.

The ZIP is the EXE only. I don't mind sharing some source code, but it
is potentially dangerous to the uninformed so I have not included it.

Re: Reboot

Posted: Fri Mar 19, 2004 5:48 am
by PB
> Is there a command in PB to restart my computer?

A search for reboot on these forums found this:

viewtopic.php?t=3808

I've also just added this question to the FAQ now. :)

Posted: Fri Mar 19, 2004 5:56 pm
by Joey
Yeah I did a search and got that but I was just wondering if you had incorperated a specific command cause that was from 2002

Cheers n e way

Posted: Sat Mar 20, 2004 2:48 am
by PB
> I was just wondering if you had incorperated a specific command cause
> that was from 2002

No, PureBasic doesn't have such a command built-in. I suppose it would
be nice, seeing as it would reduce a lot of code down to one command...

BTW, just because a code example is "old" (2002) doesn't mean it's no
longer good or won't work... just try them! :)

Posted: Sun Mar 21, 2004 4:33 pm
by Joey
I found another version here the one to look at is the second to bottom one

Posted: Tue Mar 23, 2004 10:36 pm
by BongMong
seek for the file shutdown.exe in windows/system32 folder
runprogram, with parimators.

if to sure on the shutdow parimators, open MSdos. and goto system32 folder, and type shutdown /?