Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run EXE Minimized

Status
Not open for further replies.

SleepDepD

Programmer
Mar 13, 2004
65
US
I have a VFP7 EXE (PRG) that's apart of an update package that is executed by InstallShield. I want this EXE to run completely "behind-the-scenes", what should I put at the beginning of the PRG file to keep it out of the users face?
 
_screen.windowstate = 1 && Minimized.

Ali Koumaiha
Wireless Toyz
Farmington Hills, Michigan
 
Hi SleepDepD,

Visual aspect isn't required. Just compile the .prg and run it without a form.

Regards,

Mike
 
mspratt,

I need it in a EXE, so my PRG is in a project. When the EXE runs the VFP environment opens up. I took TeknoSDS's sugguestion, but I'd still like it if as little as possible displayed to the user.
 
You can also put SCREEN = OFF in the config.fpw to prevent showing the VFP screen.

Mike
 
mspratt has given you the correct answer to this question. The other solutions will allow the _screen to flash momentarily before it goes invisible. Here's what I do... create a config.fpw with the SCREEN=OFF line in it as mspratt has suggested, then add that config.fpw to your project and compile it in. When adding it to the project I usually put it under the Text Files node, but it can also be added beneath the Other Files node as well. Just make sure that it is not set to be excluded from the build as you definately want VFP to compile it into your exe.

Nothing special will need to be done after that as VFP will find and use the config.fpw you have compiled into the exe.

boyd.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top