473,395 Members | 1,756 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

reset pc

Hello all,
is there a way to reboot my PC with a c# command? I don't mean 'shutdown -s'
or some other command. I mean a hard interrupt (INTxx), like pushing the
resetbutton on my PC.

Thanks for your help
Frank
May 8 '07 #1
5 1935
Frank,

I use a class written by Mentalis in my program, it allows me to shutdown,
restart, logoff etc.

I believe I downloaded it from http://www.mentalis.org/ but if you can't
find it there, email me, and i'll send you my class with it in.

Regards,

James.
(jr*******@hotmail.com)
"Frank" wrote:
Hello all,
is there a way to reboot my PC with a c# command? I don't mean 'shutdown -s'
or some other command. I mean a hard interrupt (INTxx), like pushing the
resetbutton on my PC.

Thanks for your help
Frank
May 8 '07 #2
"Frank" <fr*******@advitronic.nlwrote in message
news:13*************@corp.supernews.com...
is there a way to reboot my PC with a c# command? I don't mean
'shutdown -s' or some other command. I mean a hard interrupt (INTxx), like
pushing the resetbutton on my PC.
I imagine that the INTxx will only be allowed from a device driver. If it
were possible to do it from a user program, any runaway program would be
able to crash the system, which is not desirable in a well-behaved operating
system.

May 8 '07 #3
Hi,

"Frank" <fr*******@advitronic.nlwrote in message
news:13*************@corp.supernews.com...
Hello all,
is there a way to reboot my PC with a c# command? I don't mean
'shutdown -s' or some other command. I mean a hard interrupt (INTxx), like
pushing the resetbutton on my PC.
May I ask why you want to do that? It sounds like very drastic to me
May 8 '07 #4
Hello,
yes, if an INTxx is possible all kinds of virusprograms could do unwanted
stuff. But I can always have a look round, can't I?
Why do I need it? I have problems with remote servers that do not respond to
a shutdown, so maybe a hard reset is a solution.
So if there is some way to do an INTxx I would like to know.
Regards
Frank

"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions.comwrote in
message news:u9**************@TK2MSFTNGP02.phx.gbl...
Hi,

"Frank" <fr*******@advitronic.nlwrote in message
news:13*************@corp.supernews.com...
>Hello all,
is there a way to reboot my PC with a c# command? I don't mean
'shutdown -s' or some other command. I mean a hard interrupt (INTxx),
like pushing the resetbutton on my PC.

May I ask why you want to do that? It sounds like very drastic to me

May 9 '07 #5
Been there... a different solution (that doesn't depend on *anything*
working on the server) is a networked power switch, and a BIOS that
auto-ons when the power comes back.

Or, use "Robotics Studio" (May CTP now available) to build yourself a
scutter with access to the big red button ;-p

Marc
May 9 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Ken | last post by:
How can I reset the initial form variables that are set with session statements when clicking on a button? I tried this but the function was not called: <?PHP function reset_form($none) {...
2
by: Charles M. Fish, Sr. | last post by:
I’m so tired from banging this problem around all day, I hope I can explain it succinctly & accurately. I want to execute a function immediately following a click on <input type="RESET"... ...
6
by: Ramachandran Subramanian | last post by:
I have a question regarding the db2 reset monitor. When I issue the command and do a get snapshot I see most of the counters are reset . How ever the Dynamic SQL snapshot section doesnt seem...
1
by: NancyASAP | last post by:
Thought I'd share this since it took me a long time to get it working. Thanks to a bunch of contributers in Google Groups who shared javascript, etc. The question was: How can I put a reset...
4
by: Lee Chapman | last post by:
Hi, Can anyone tell me why in the code below, the call to ClearChildViewState() has no effect? To paraphrase the code: I'm using view state. I have a textbox and a submit button (and a label...
2
by: Lance | last post by:
I want to be able to reset a complex property in a PropertyGrid. I know that for properties that are ValueTypes you can include System.ComponentModel.DefaultValue in the declaration of the property....
2
by: Roger Withnell | last post by:
I need to reset a form to its original value using onclick rather than the Reset button. So, I have: <input type="button" name="reset" id="reset" value="Reset" onclick="form1.reset();"> where...
16
by: sreemati | last post by:
Hi everyone, This is the scenario: I have two button - Submit and Reset Submit is used for validation and after validation is passed it passes it to another form to enter into database. ...
11
by: newbie | last post by:
i have a form in which a hidden field (initial value as '0', and my javascript set it to '1' when an event is trigged). In the same form, i have a reset field. But I realized that the hidden field...
16
by: Giovanni D'Ascola | last post by:
Hi. I noticed that <input type="reset"actually don't enable checkbutton which are checked by default after they have been disabled by javascript. It's a bug?
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.