Mike,

Have you checked the help files for that command? There are quite a few 
specific conditions that need to be met.

Also, does your folder name have any spaces in? If so, you’ll need double 
quotes around it.

if you’re creating and then removing with little time between then you need to 
wait long enough for the system to write the information about the new folder 
before R:Base can find it to remove it again. Obviously that time needed 
depends on the system so try a “pause for n” between and vary the length until 
you consistently get what you want remembering that the (varying) load on the 
system may have some bearing on what you need. From my experience with DOS 
commands needing time to “work” three seconds seems to be ample.

Regards,
Alastair.


From: Michael J. Sinclair 
Sent: Saturday, August 25, 2012 8:55 PM
To: RBASE-L Mailing List 
Subject: [RBASE-L] - Does Rbase Lock folders or change them to read only? RMDIR 
is giving 2270 error

Hi All,
I am trying to use RBase to remove some empty folders. I also have RBase 
creating some empty folders. To remove the folders I use...

RMDIR drive:\path

the actual code might be....

SET VAR vemptyfolder TEXT = 'G:\Stuff\More_Stuff'
RMDIR .vemptyfolder

Sometimes it fails especially if RBase created the folder. It is acting like 
the folder is in use.
The error variable code I get is 2270

Does Rbase somehow change the properties of folders to read only? Is there 
something I can to do make RBase "let go" of the folder it just made so the 
RMDIR command will work?

Thanks.
Mike

Reply via email to