- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have an appllication which launches quickwin executables using RUNQQ. Trouble is that when the quickwin exe is launched is takes the focus from the window I am working on, so I can't run this app in the background. Is there any way to lauch the quickwin exe's minimized or such that they don't take focus?
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use start:
C:\YourFolder>start /? to get options
Try:
start /min YourProgram
Jim Dempsey
C:\YourFolder>start /? to get options
Try:
start /min YourProgram
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm running from a program, so I tried:
RUNQQ('start /min /wait '//PGNAM(1:J1)//' '//CMDLIN(1:J2),' ')
Works only intermittently though for some reason.
RUNQQ('start /min /wait '//PGNAM(1:J1)//' '//CMDLIN(1:J2),' ')
Works only intermittently though for some reason.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting ferrad01
I'm running from a program, so I tried:
RUNQQ('start /min /wait '//PGNAM(1:J1)//' '//CMDLIN(1:J2),' ')
Works only intermittently though for some reason.
RUNQQ('start /min /wait '//PGNAM(1:J1)//' '//CMDLIN(1:J2),' ')
Works only intermittently though for some reason.
Try
RUNQQ('start', '/min /wait '//PGNAM(1:J1)//' '//CMDLIN(1:J2))
IOW
filename = 'start'
command line (arguments) = '/min /wait PGNAM(1:J1) CMDLIN(1:J2)'
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would recommend using ShellExecute or CreateProcess (the latter if you need to wait for it to finish). These are Windows API routines and samples are provided in the old Visual Fortran Newsletter articles.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Jim and Steve,
I'll look at both options.
I'll look at both options.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page