Can't delete directory created by a macro ...

  • Thread starter Thread starter M C
  • Start date Start date
M

M C

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?
 
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
 
Back
Top