>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.