- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Everyone,
My program makes the following system call to start a sub-task, i.e., run prog.exe.
prog.exe datafile.dat
The calling program always wait until the completion of the sub-task before it proceeds. Can any of you show me how to make the calling program proceeds without waiting ? Thanks in advance. Good Day.
Tom Lin
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try ShellExecuteEx. I would have posted some code, but I have just found that
I cannot paste anything into this blasted window!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try executing (through SYSTEM)
'start prog.exe datafile.dat' (which launchs a separate cmd shell window)
or
'start /B prog.exe datafile.dat' (which doesn't, useful for windows GUI app)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can paste with CTRL-V or the Paste icon in the editing toolbar (third from left in bottom row.) For pasting code, use the icon on the far right of the bottom row.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you all for prompt replies. The command 'start /B' is what I am looking for. Because our programs are triggered by activities on Sun, we have to use Window Service. Creating a window to run will not work. Thanks again. The forum has been extremely helpful to my project. I really appreciate that.
Tom Lin
![](/skins/images/2E08A100FB92911314A240D1EAFB2828/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page