473,396 Members | 1,886 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,396 software developers and data experts.

perform reboot

Hi,

how can i preform reboot to my machine from my win application?

Thanks,
Gidi.
Jul 31 '08 #1
7 1257
On Jul 31, 7:43*am, Gidi <shna...@hotmail.com.dontspamwrote:
Hi,

how can i preform reboot to my machine from my win application?

Thanks,
Gidi.
I do ti by running a "shutdown /r" command in a Process.
Jul 31 '08 #2
Thanks,

I know this command, but it's not working for Win2K, i'm looking for
something generic.

"za***@construction-imaging.com" wrote:
On Jul 31, 7:43 am, Gidi <shna...@hotmail.com.dontspamwrote:
Hi,

how can i preform reboot to my machine from my win application?

Thanks,
Gidi.

I do ti by running a "shutdown /r" command in a Process.
Jul 31 '08 #3
how can i preform reboot to my machine from my win application?

http://msdn.microsoft.com/en-us/libr...83(VS.85).aspx
Jul 31 '08 #4
On Jul 31, 7:43*am, Gidi <shna...@hotmail.com.dontspamwrote:
Hi,

how can i preform reboot to my machine from my win application?

Thanks,
Gidi.
always look into the archives before asking:
http://groups.google.com/group/micro...d94c9bc162951b
Jul 31 '08 #5
Hi,

thanks, I tried that, and it doesn't work for Win 2K...

"Larry Smith" wrote:
how can i preform reboot to my machine from my win application?

http://msdn.microsoft.com/en-us/libr...83(VS.85).aspx
Jul 31 '08 #6
Hi,
>
thanks, I tried that, and it doesn't work for Win 2K...
I no longer have Win2K installed. How could it not work however. These are
the official functions from the WinAPI itself and most are documented to
include Win2K. All other platforms including .NET itself will rely on these
in theory.
Jul 31 '08 #7
Thanks,

that works!

"Ignacio Machin ( .NET/ C# MVP )" wrote:
On Jul 31, 7:43 am, Gidi <shna...@hotmail.com.dontspamwrote:
Hi,

how can i preform reboot to my machine from my win application?

Thanks,
Gidi.

always look into the archives before asking:
http://groups.google.com/group/micro...d94c9bc162951b
Jul 31 '08 #8

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

Similar topics

8
by: Ben Allen | last post by:
Is there a way (through a variable) to show the date of the last server reboot i.e. when PHP last started running? As I am trying to show the server uptime, which of course only works from the last...
6
by: Stephane Dalpe | last post by:
Hi all, I just want to know why when I'm installing jdk sometimes ask me to reboot and sometimes he don't. As part of our installation, we launch the jdk installation if it's not already...
0
by: ThunderMusic | last post by:
Hi, I'm trying to install VS.NET 2003 and it keeps asking me to reboot the computer for installing the first step. After rebooting, I try to install the first step, then it tells me again an...
10
by: JL | last post by:
To All, I have a SQL2KSP3a database(<1GB) running on a 4x3GB physical CPU with 4GB of ram. It is Windows Server 2003 with hyper-threading turn on. There are ~420 .Net users/cxns (fat client, no...
3
by: sam | last post by:
I found reboot script at TechNet and I wonder how to apply in VB.Net? Reboot Coding ************ strComputer = "." Set objWMIService = GetObject("winmgmts:" _ &...
1
by: Aaron | last post by:
Not sure if this is the best spot to post this question, but I am not going to pay money to ask an installation question.... Anyways I am trying to install C# standard 2003 and it analyzes the...
3
by: iamsiju | last post by:
Hi, I am facing a problem with the Perl Telnet Object. My Telnet Object hangs just after issueing reboot command on the remote host. Please help me who faced this problem !!! Thanks in...
2
by: =?Utf-8?B?VHJhY2tz?= | last post by:
When I run my setup of a vb.net app made in VS2005 and setup made with the setup wizard and then modified in the ide, The .net 2 setup runs and installs and then asks to reboot. If you answer ok...
3
by: cj | last post by:
My program shuts itself down and reboots the pc it's running on at 2:00am twice a week and has been doing so without fail for over a year. But twice in the past month it's been found running in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.