SHUTDOWN
-
Hello friends! I'm in the process of conceptualizing a test program that (hopefully) shuts down my unit for a given time but the catch is I want the program to close all running applications first particularly my internet connection (since i'm using dial-up connection) and shuts down my unit properly. Is this do-able in c# and if so could someone please give me a boost on this. I'm fairly new to programming let alone c# and i'm trying to scroll through the namespaces and i can't seem to get a solution for my problem. So any assistance regarding this matter would mean gold to me. Thanx for all your helps! Oh yeah I'm using Windows XP home ed and VS.NET 2003. Almost forgot..:-O Kampai!!!
-
Hello friends! I'm in the process of conceptualizing a test program that (hopefully) shuts down my unit for a given time but the catch is I want the program to close all running applications first particularly my internet connection (since i'm using dial-up connection) and shuts down my unit properly. Is this do-able in c# and if so could someone please give me a boost on this. I'm fairly new to programming let alone c# and i'm trying to scroll through the namespaces and i can't seem to get a solution for my problem. So any assistance regarding this matter would mean gold to me. Thanx for all your helps! Oh yeah I'm using Windows XP home ed and VS.NET 2003. Almost forgot..:-O Kampai!!!
-
you can try using kill() to kill the processes you can try searching msdn for "C# kill process"
Hey thanx! I found a similar program that shuts down a machine for a give time but the problem is it forces applications to terminate meaning it doesn't close applications properly. Any lead on this? How can i access my tool bar using c#? Thanx! Kampai!!!
-
Hey thanx! I found a similar program that shuts down a machine for a give time but the problem is it forces applications to terminate meaning it doesn't close applications properly. Any lead on this? How can i access my tool bar using c#? Thanx! Kampai!!!
maybe you can use myProcess.CloseMainWindow(); but this only works with application with user interface. It behaves the same as selectign close from the application interface. There will be a user prompt for any unsaved data. but for applications without user interface, you will need to use myProcess.Kill() hope this helps
-
maybe you can use myProcess.CloseMainWindow(); but this only works with application with user interface. It behaves the same as selectign close from the application interface. There will be a user prompt for any unsaved data. but for applications without user interface, you will need to use myProcess.Kill() hope this helps