×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Microsoft: FoxPro FAQ

Program Source Code

Run a EXe program without the run command - Win9x > by dgrewe
Posted: 22 Sep 00

*/***************************************************************************
*/Program   : RunExe
*/System    : Project Bidding System
*/Purpose   : Start a Windows Exe File without the run command
*/Syntax    : Success = runExe(ExeName , [Parameter] , [WindowStatus])
*/Returns   : Sucess - logical
*/Parameter : ExeName - String - Drive:\Directory\Filename of program to start
*/          : Parameter - String - ExeFile Parameters
*/          : WindowStatus - integer - Type of window to open
*/Defaults  : ExeName - Manditory
*/          : Parameter - Optional
*/Requires  : Windows 95/98/NT/2000
*/Changes   :
*/Calls     :
*/Version   : 1.0
*/Dated     : 08/31/2000
*/Written By: David W. Grewe
*/************************************************************
lparameters pcExeName, pcParameters, pnWindowStat
* first parameter required, other - optional
if Parameters() < 2.5 .or. type("pnWindowStat") != "N" .or. empty(pnWindowStat)
  pnWindowStat = 1  && see Win32Api function ShowWindow for values of pnWindowStat
endif
local lcRunString
m.lcRunString = '"'+ allt(m.pcExeName) + '"' + iif(parameters() > 1 ,  + " " + m.pcParameters , "")
declare integer WinExec in kernel32 string lpCmdLine, integer uCmdShow
return  WinExec(m.lcRunString, m.pnWindowStat) > 31
endproc

Back to Microsoft: FoxPro FAQ Index
Back to Microsoft: FoxPro Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close