Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running a backup command
Message
 
To
19/05/2006 04:57:11
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01123489
Message ID:
01123504
Views:
14
>Hi,
>
>I am runing a backup routine and my RUN &backupcmd command contains the following.
>
>c:\winzip\wzzip.exe c:\test\databack.zip c:\mydata\*.db? *.dc? *.fp? *.cd?
>
>This command line is entered in a text box
>
>My problem is that the process continues(flashes in/out) even if c:\mydata folder does not exist.
>
>I want to validate if c:\mydata folder exists.
>
>Thanks in advance
>
>Zaheed
lcBackupFolder = JUSTPATH(SUBSTR(backupcmd, AT([C:\],UPPER(backupcmd),3)-1))
IF NOT DIRECTORY(lcBackupFolder)
   MD (lcBackupFolder)
ENDIF
RUN &backupcmd
(not well tested)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform