At 01:43 PM 6/11/2008, jan johansen wrote:
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
Jan,
Here's the correct technique to verify and then create a
folder, if necessary.
Example 01:
-- start here ...
SET VAR vChkFile INTEGER = NULL
SET VAR vChkFile = (CHKFILE('PDF'))
IF vChkFile <> 1 THEN
MD PDF
ENDIF
-- end here ...
Change the code as you see fit, including the correct use
of quotes, in your case.
Very Best R:egards,
Razzak.