Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / July 2008

Tip: Looking for answers? Try searching our database.

perform reboot

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gidi - 31 Jul 2008 12:43 GMT
Hi,

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

Thanks,
Gidi.
zacks@construction-imaging.com - 31 Jul 2008 13:56 GMT
> 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.
Gidi - 31 Jul 2008 14:12 GMT
Thanks,

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

> > Hi,
> >
[quoted text clipped - 4 lines]
>
> I do ti by running a "shutdown /r" command in a Process.
Larry Smith - 31 Jul 2008 14:16 GMT
> how can i preform reboot to my machine from my win application?

http://msdn.microsoft.com/en-us/library/aa376883(VS.85).aspx
Gidi - 31 Jul 2008 14:51 GMT
Hi,

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

> > how can i preform reboot to my machine from my win application?
>
> http://msdn.microsoft.com/en-us/library/aa376883(VS.85).aspx 
Larry Smith - 31 Jul 2008 14:59 GMT
> 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.
Ignacio Machin ( .NET/ C# MVP ) - 31 Jul 2008 14:45 GMT
> 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/microsoft.public.dotnet.languages.csharp/browse_t
hread/thread/7963a5465a78a259/75d94c9bc162951b?lnk=gst&q=reboot#75d94c9bc162951b

Gidi - 31 Jul 2008 15:28 GMT
Thanks,

that works!

> > Hi,
> >
[quoted text clipped - 5 lines]
> always look into the archives before asking:
> http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_t
hread/thread/7963a5465a78a259/75d94c9bc162951b?lnk=gst&q=reboot#75d94c9bc162951b

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.