Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to suppress DOS Window while using commands such as RUN
Message
From
20/03/2005 20:19:02
Freddie Rodrigues
Bitrun Business Solutions
Mumbai, India
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to suppress DOS Window while using commands such as RUN
Miscellaneous
Thread ID:
00997732
Message ID:
00997732
Views:
67
How can I suppress the DOS window from poping while using DOS commands [command line], in my programs.

This is the code that I have been working with. It does the job, but keeps poping the Dos Window throughout my commands.
* mdir    is the directory variable
* zipfl   is the zip file name variable

mtopdir = subs(mdir,1,at('\',mdir)-1)
mtopfls = subs(zipfl,1,at('.',zipfl))+'top'

*** Either OF these
!zip &mtopfls &mtopdir\*.* >BitRun.bak
*** Or
=ShellBackup([zip &mtopfls &mtopdir\*.* >BitRun.bak])
***

FUNC ShellBackup
Para lcCmd
loShell = CREATEOBJECT("wscript.shell")
lnSuccess = loShell.Run(lcCmd,1,.t.)
Thanks
Helping hands are better than praying lips.
Next
Reply
Map
View

Click here to load this message in the networking platform