ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Can't delete directory created by a macro ... (https://www.excelbanter.com/excel-programming/273980-cant-delete-directory-created-macro.html)

M C

Can't delete directory created by a macro ...
 
I created a macro to create some directories. The problem is that
when I was creating the directories i in advertently put a space at
the end of the directory :

X:\Microsoft\Excel\Files \

As a result, of the space, I can't seem to delete this. I get an
error message 1026 saying that I can't delete the file or directory
(and sometimes I get a message saying that the directory/file is not
there, yet I can see it and create files in it).

Is there some way for me to delete this directory?

Ray at[_2_]

Can't delete directory created by a macro ...
 
Odd, the space shouldn't really matter, but who knows. Try deleting from
the command prompt:

Start---Run---cmd---ENTER
X:
CD Path\That\Is\Parent\Of\Problem\Dir (for example: CD Microsoft\Excel
DIR /X
RD NameOfProblemDirectory

Ray at work


"M C" wrote in message
om...
I created a macro to create some directories. The problem is that
when I was creating the directories i in advertently put a space at
the end of the directory :

X:\Microsoft\Excel\Files \

As a result, of the space, I can't seem to delete this. I get an
error message 1026 saying that I can't delete the file or directory
(and sometimes I get a message saying that the directory/file is not
there, yet I can see it and create files in it).

Is there some way for me to delete this directory?





All times are GMT +1. The time now is 11:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com