run an exe
-
I want to run an application exe from another application without control of the parent application.To be clear i am running an application from pen drive.That application in the pen drive runs another application from it.now even when i closed the parent application and i am not able to safe remove the usb dtive untill i closed the child application.Any suggestions on this?
-
I want to run an application exe from another application without control of the parent application.To be clear i am running an application from pen drive.That application in the pen drive runs another application from it.now even when i closed the parent application and i am not able to safe remove the usb dtive untill i closed the child application.Any suggestions on this?
::ShellExecute(NULL, _T("C:\\folder\\myprog.exe"), NULL, NULL, NULL, SW_SHOWNORMAL);
[VisualCalc][Flags Beginner's Guide] | [Forums Guidelines][My Best Advice]
-
::ShellExecute(NULL, _T("C:\\folder\\myprog.exe"), NULL, NULL, NULL, SW_SHOWNORMAL);
[VisualCalc][Flags Beginner's Guide] | [Forums Guidelines][My Best Advice]
-
hi thanks for your reply.I have one question is this function run without the control of the parent application(from which we run this). Thanks
yes, ShellExecute() is the API called when you double click on the icon of a programme to start it. when doing so, is your program dependant of explorer.exe ? no.
[VisualCalc][Flags Beginner's Guide] | [Forums Guidelines][My Best Advice]
-
yes, ShellExecute() is the API called when you double click on the icon of a programme to start it. when doing so, is your program dependant of explorer.exe ? no.
[VisualCalc][Flags Beginner's Guide] | [Forums Guidelines][My Best Advice]
ya.My problem is when i used this function to run an exe from an application running in usb drive.Now when i closed the application in the usb drive,the usb is not safe removed untill i close the exe which i runned using shellexecute function.How can i resolve this?
-
I want to run an application exe from another application without control of the parent application.To be clear i am running an application from pen drive.That application in the pen drive runs another application from it.now even when i closed the parent application and i am not able to safe remove the usb dtive untill i closed the child application.Any suggestions on this?
radhika28 wrote:
I want to run an application exe from another application without control of the parent application.
Check this out.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
ya.My problem is when i used this function to run an exe from an application running in usb drive.Now when i closed the application in the usb drive,the usb is not safe removed untill i close the exe which i runned using shellexecute function.How can i resolve this?
radhika28 wrote:
How can i resolve this?
Well, technically the drive is in use. See if this is of any help.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb