I'm new here, as you can most likely tell by my low post count... but my question is simple. What procedure/commands/whatever would I need to make the computer restart or shutdown? I have google'd for a looooong time to find this, but found absolutely nothing. Does anyone have some help for me? Its confusing :(
Thanks for all help!
EDIT:
Using borland pascal 7... if that makes any difference.
DarknessX
0
Newbie Poster
Recommended Answers
Jump to PostYou'll need to use the windows API with Pascal...I found this site: http://www.irietools.com/iriepascal/progref305.html, but it's about Irie pascal and not turbo pascal.... I'm not sure the difference. Basically, you need to figure out …
Jump to PostHi,
I had post a code snippet about this lately on the code snippets section of this site. Check on Pascal, Delphi code snippets w/ my nick "Lord Soth".
Loren Soth
Jump to PostHi,
It seems like on Procedure Shut_Down_Windows; There isn't enough end to match the begins. (2 begins vs 1 end) Other than that try "uses dos,Reboot;"
Loren Soth
Jump to PostHi,
This one works on Delphi :
program Project2; {$APPTYPE CONSOLE} uses SysUtils; //Use upper case constants as a convention const PWRD = 'd347h3464'; USRNAME = 'DarknessX'; VER = '1.0'; var cmd: String; username: String; password: String; begin writeln('DarknessX Authentication Server'); write('username : '); readln(username); write('password …
All 13 Replies
Comatose
290
Taboo Programmer
Team Colleague
Lord Soth
4
Posting Whiz in Training
frunnik
0
Newbie Poster
DarknessX
0
Newbie Poster
Lord Soth
4
Posting Whiz in Training
DarknessX
0
Newbie Poster
Lord Soth
4
Posting Whiz in Training
DarknessX
0
Newbie Poster
DarknessX
0
Newbie Poster
Lord Soth
4
Posting Whiz in Training
jamshid
-2
Junior Poster in Training
bobo_joker
0
Newbie Poster
bobo_joker
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.