Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

RUNQQ minimized?

ferrad01
Beginner
712 Views
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?
0 Kudos
5 Replies
jimdempseyatthecove
Honored Contributor III
712 Views
Use start:

C:\YourFolder>start /? to get options

Try:

start /min YourProgram

Jim Dempsey
0 Kudos
ferrad01
Beginner
712 Views
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.
0 Kudos
jimdempseyatthecove
Honored Contributor III
712 Views
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.


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

0 Kudos
Steven_L_Intel1
Employee
712 Views
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.
0 Kudos
ferrad01
Beginner
712 Views
Thanks Jim and Steve,
I'll look at both options.
0 Kudos
Reply