Thanks Paul and Razzak. Trailing backslash was issue. And I like the shorter
code lines.
Claudine
-Original Message-
From: rbase-l@googlegroups.com [mailto:rbase-l@googlegroups.com] On Behalf Of
A. Razzak Memon
Sent: Wednesday, April 04, 2018 1:49 PM
To: rbase-l@googlegroups.com
Claudine,
For what it’s worth, all the examples of this that I am using do not have the
“trailing” ‘\’ on the path. For example if I check for the temp folder on the
C: drive I do something like this:
SET VAR vcheckfolderpath = 'C:\temp'
SET VAR vchkfile = (CHKFILE(.vcheckfolderpath))
Claudine,
Without knowing all details about your network, folders, mapped drives, etc ...
Try the following test and see what you get.
-- Example 01
IF (CHKFILE('C:\ScanFolder')) <> 1 THEN
MD C:\ScanFolder
ENDIF
-- Example 02:
SET VAR vScanFolder TEXT = 'C:\ScanFolder'
IF
SET VAR vlscandir = (SRPL((CVAL('CURRDIR')+ '\TRAIL\' ), '\\', '\',0))
SET VAR vsscandir = ('TRAIL\')
SET VAR vChkDir INTEGER = NULL
SET VAR vChkDir = (CHKFILE(.vLScanDir))
IF vChkDir <> 1 THEN
MKDIR
ENDIF
R>sho v vlscandir
C:\IEX_X\TRAIL\
This sequence fails. The directory exists but
4 matches
Mail list logo