I’ve found that if a path contains any spaces, then you need to wrap the path
in ID Quotes. You might want to try inserting this:
SET VAR vBackupDir1= ('`' + . vBackupDir1 + '`')
From: [email protected] <[email protected]> On Behalf Of A.
Razzak Memon
Sent: Friday, October 30, 2020 6:39 AM
To: [email protected]
Subject: Re: [RBASE-L] - Stumped
That should work flawlessly!
At 11:39 PM 10/29/2020, Tom Hart wrote:
>vbackdir1 is captured variable from my database so would I just use this
>IF (CHKFILE(.vBackupDir1)) <> 1 THEN
> MKDIR .vBackupDir1
>ENDIF
>
>Tom
>
>On Thu, Oct 29, 2020 at 10:10 PM A. Razzak Memon
><<mailto:[email protected]>[email protected]<mailto:[email protected]>> wrote:
>Tom,
>
>Here is an eloquent method to check the existence of file or directory.
>
>-- Example
>SET VAR vBackupDir1 TEXT = 'XLS'
>IF (CHKFILE(.vBackupDir1)) <> 1 THEN
> MKDIR .vBackupDir1
>ENDIF
>
>There is no need to use extra steps and variables
>to check the existence of file or directory.
>
>Have fun!
>
>Very Best Regards,
>
>Razzak
>
>Razzak
>
>
>At 11:01 PM 10/29/2020, Tom Hart wrote:
>
> >I have been using an autobackup routine for
> >years on many different computers and never had
> >a problem until now. The only thing is that I
> >have put it on a computer with C is ssd and D
> >regular harddrive. Following is the code where
> >it hangs up. I create the backup folder if it
> >does not exist even though it does backup I get
> >a message 'Unable to create directory'
> >2269. If I take out this code it works
> >fine. I my error message related to ssd/regular harddrive
> >
> >CLEAR VAR vdatafile
> >SET VAR vdatafile INTEGER = NULL
> >SET VAR vdatafile = (CHKFILE(.vbackdir1))
> >IF vdatafile <> 1 THEN
> > MKDIR .vbackdir1
> >ENDIF
> >
> >Tom Hart
> >
> >--
> >For group guidelines, visit
> ><<http://www.rbase.com/support/usersgroup_guide<http://www.rbase.com/support/usersgroup_guide>
> lines.php>http://www.rbase.com/support/usersgroup_guidelines.php<http://www.rbase.com/support/usersgroup_guidelines.php>>http://www.rbase.com/support/usersgroup_guidelines.php<http://www.rbase.com/support/usersgroup_guidelines.php>
> >---
> >You received this message because you are
> >subscribed to the Google Groups "RBASE-L" group.
> >To unsubscribe from this group and stop
> >receiving emails from it, send an email to
> ><mailto:[email protected]><m
> ailto:rbase-l%[email protected]>[email protected]<mailto:[email protected]>.
> >To view this discussion on the web visit
> ><<https://groups.google.com/d/msgid/rbase-l/CAB<https://groups.google.com/d/msgid/rbase-l/CAB>
> X9BNeBr%3Ds_A2dPBamxs2Fkt2HO5xG5uKy8MjyN7hA-dTmmUA%40mail.gmail.com?utm_medium=email&utm_source=footer>https://groups.google.com/d/msgid/rbase-l/CABX9BNeBr=s_a2dpbamxs2fkt2ho5xg5uky8mjyn7ha-dtm...@mail.gmail.com?utm_medium=email&utm_source=footer<https://groups.google.com/d/msgid/rbase-l/CABX9BNeBr=s_a2dpbamxs2fkt2ho5xg5uky8mjyn7ha-dtm...@mail.gmail.com?utm_medium=email&utm_source=footer>>https://groups.google.com/d/msgid/rbase-l/CABX9BNeBr=s_a2dpbamxs2fkt2ho5xg5uky8mjyn7ha-dtm...@mail.gmail.com<https://groups.google.com/d/msgid/rbase-l/CABX9BNeBr=s_a2dpbamxs2fkt2ho5xg5uky8mjyn7ha-dtm...@mail.gmail.com>.
>
>--
>For group guidelines, visit
><http://www.rbase.com/support/usersgroup_guidelines.php<http://www.rbase.com/support/usersgroup_guidelines.php>>http://www.rbase.com/support/usersgroup_guidelines.php<http://www.rbase.com/support/usersgroup_guidelines.php>
>---
>You received this message because you are
>subscribed to the Google Groups "RBASE-L" group.
>To unsubscribe from this group and stop
>receiving emails from it, send an email to
><mailto:rbase-l%[email protected]>[email protected]<mailto:[email protected]>.
>To view this discussion on the web visit
><https://groups.google.com/d/msgid/rbase-l/[email protected]<https://groups.google.com/d/msgid/rbase-l/[email protected]>>https://groups.google.com/d/msgid/rbase-l/[email protected]<https://groups.google.com/d/msgid/rbase-l/[email protected]>.
>
>--
>For group guidelines, visit
><http://www.rbase.com/support/usersgroup_guidelines.php<http://www.rbase.com/support/usersgroup_guidelines.php>>http://www.rbase.com/support/usersgroup_guidelines.php<http://www.rbase.com/support/usersgroup_guidelines.php>
>---
>You received this message because you are
>subscribed to the Google Groups "RBASE-L" group.
>To unsubscribe from this group and stop
>receiving emails from it, send an email to
><mailto:[email protected]>[email protected]<mailto:[email protected]>.
>To view this discussion on the web visit
><https://groups.google.com/d/msgid/rbase-l/cabx9bndtxj6zrd5mszfkffuejfp1itrkmao1qtzcwjhh3ud...@mail.gmail.com?utm_medium=email&utm_source=footer<https://groups.google.com/d/msgid/rbase-l/cabx9bndtxj6zrd5mszfkffuejfp1itrkmao1qtzcwjhh3ud...@mail.gmail.com?utm_medium=email&utm_source=footer>>https://groups.google.com/d/msgid/rbase-l/cabx9bndtxj6zrd5mszfkffuejfp1itrkmao1qtzcwjhh3ud...@mail.gmail.com<https://groups.google.com/d/msgid/rbase-l/cabx9bndtxj6zrd5mszfkffuejfp1itrkmao1qtzcwjhh3ud...@mail.gmail.com>.
--
For group guidelines, visit
http://www.rbase.com/support/usersgroup_guidelines.php<http://www.rbase.com/support/usersgroup_guidelines.php>
---
You received this message because you are subscribed to the Google Groups
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/rbase-l/[email protected]<https://groups.google.com/d/msgid/rbase-l/[email protected]>.
ATTENTION: This message and all attachments are PRIVATE, and may contain
information that is CONFIDENTIAL and PRIVILEGED. If you have received this
message in error, please notify the sender by reply e-mail and delete the
message immediately. If you no longer wish to receive communication from DMA,
please click here.<https://www2.dmainc.com/subscriptioncenter>
--
For group guidelines, visit
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rbase-l/DM6PR07MB51146EC5343719785E92CD15B4150%40DM6PR07MB5114.namprd07.prod.outlook.com.