I know I have done this before but I'm missing something.
 
I'm trying to check the existance of a folder in the current directory named 
BACKUP
and create it if not found so I have
SET VAR vChkDir = (CHKFILE("BACKUP"))
IF vChkDir <> 1 THEN
   MD BACKUP
ENDIF
 
Currently the directory does not have a BACKUP directory. When I trace this 
vChkDir comes
up with 1 even though it should be 0.
 
If I change the code to
SET VAR vChkDir = (CHKFILE("C:\RBTI\RBG76\MyFiles\BACKUP"))
then vChkDir returns 0
 
I've tried
SET VAR vChkDir = (CHKFILE("\BACKUP"))
and 
SET VAR vChkDir = (CHKFILE("/BACKUP")) 
with no change.

Ideas? 
 
Using 7.6.4.30610

Reply via email to