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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable MS-DOS WINDOWS

Status
Not open for further replies.

Mistral2

Technical User
Nov 12, 2002
21
TN
How can i avoid to show the MS-DOS WINDOWS when i use this commande i a prg:

! /N XCOPY J:\DBF\*.* C:\SAVE\ /D/Y

Thanks.
 
Hi

lcCmd = GETENV("ComSpec") + [ /C ]
lcCmd = lcCmd + [XCOPY J:\DBF\*.* C:\SAVE\ /D/Y]

loShell = CREATEOBJECT("wscript.shell")
= loShell.Run(lcCmd,0,.t.)

=MESSAGEBOX("Completed")

You can also use ShellExecute to do similar thing.

:)

____________________________________________
ramani - (Subramanian.G) :)
 
I can think of three ways:
1) Alter the Foxrun.PIF to open minimized and close when done.
2) Use the SHELLEXEC API to start up this program.
3) Go to the UT at click the Downloads picture, then enter "api_apprun" (without the quotes) in the Title box and press enter. You should get back a link to:
API_APPRUN in .VCX form February 22, 2003
This contains PROCESS.VCX - a visual class library for the API_APPRUN class described in the FAQ. The class gives the ability to run DOS and WinApps from inside VFP using the CreateProcess() API call, and allows you to wait on termination or return immediately, and allows you to examine the execution status and termination code from an executable run by the class.
It takes care of managing the process and thread handles, removing some potential memory bleeds from not properly disposing of proce...

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top