Reboot

Just starting out? Need help? Post your questions and find answers here.
Joey
New User
New User
Posts: 7
Joined: Thu Mar 18, 2004 10:09 pm

Reboot

Post by Joey »

Is there a command in PB to restart my computer? I'm just interested, as I couldn't find one myself.
TerryHough
Enthusiast
Enthusiast
Posts: 781
Joined: Fri Apr 25, 2003 6:51 pm
Location: NC, USA
Contact:

Post 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.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Reboot

Post 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. :)
Joey
New User
New User
Posts: 7
Joined: Thu Mar 18, 2004 10:09 pm

Post 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
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post 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! :)
Joey
New User
New User
Posts: 7
Joined: Thu Mar 18, 2004 10:09 pm

Post by Joey »

I found another version here the one to look at is the second to bottom one
BongMong
User
User
Posts: 31
Joined: Sat Jan 03, 2004 6:50 pm

Post 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 /?
1300 @ 1450mhz, DDR400, MX440, XP pro / 2000Pro
Post Reply