04-26-2011, 05:10 AM
Anyway to restart a running process in windows?
Restart
|
04-26-2011, 05:10 AM
Anyway to restart a running process in windows?
04-26-2011, 05:38 AM
int hwnd=win("process window")
if hwnd ,clo hwnd ,1 ,run "process.exe"
04-26-2011, 05:39 AM
Need this for an exe.
04-26-2011, 05:42 AM
04-26-2011, 05:45 AM
Tried that already, only problem is when I end the program...it doesn't do the next step because I just ended it!
What i'm using this for is when a client activates there program it pops a message up "Setup Sheet is now activated. The program will now restart and you will have full access." but I cant make it restart
04-26-2011, 05:56 AM
Maybe must be restarted with certain command line. Look in Process Explorer (download it if don't have) what is the command line when the process is restarted.
04-26-2011, 06:01 AM
I have process explorer open. How do I tell what command line is when it starts?
Or is it this? "C:\Program Files (x86)\QMR Programs\Setup Sheet Advanced\Setup Sheet Advanced.exe"
04-26-2011, 06:06 AM
Nothing in tail? Then started without command line. Now I don't have more ideas.
04-26-2011, 06:08 AM
Thats all that was in the properties dialog. The exe was created with QM if that helps any...
04-26-2011, 06:12 AM
Processes of programs created with QM can be terminated like other processes. Using clo or ShutDownProcess.
04-26-2011, 06:19 AM
Yes I understand that. Still trying to figure out a way to restart it! Maybe have another exe that is installed on the install of the main program, and when I need to restart...run that exe and have it wait for main exe to be killed, then run main exe.
04-26-2011, 06:22 AM
04-26-2011, 08:06 AM
Made a work around...
put this in the main exe before it ends it, after it activates... Macro Macro4 ,,,rget _s "Main Install Path" "Software\SS Software\Setup Sheet" and this is "Restart_Setup" FunctionRestart_Setup |
« Next Oldest | Next Newest »
|