PC Review


Reply
Thread Tools Rate Thread

Can't delete/rename folder as the name ends with space

 
 
Don Wiss
Guest
Posts: n/a
 
      13th Mar 2007
Due to a bug in one of my programs a folder got renamed to a name with a
space at the end. I can't delete, move, or rename this folder. I can move
the parent folder and it comes along. So I have moved it off to a problem
area and renamed the parent. But I'd still like to get rid of it. I've
booted my machine. I'd gone to the command prompt and tried putting double
quotes around it plus a trailing space. I've tried tying to it under
program control (with the trailing space). Nothing works. The error is
always "The system cannot find the file specified."

Don <www.donwiss.com> (e-mail link at home page bottom).
 
Reply With Quote
 
 
 
 
Nightowl
Guest
Posts: n/a
 
      13th Mar 2007
Don Wiss <donwiss@no_spam.com> wrote on Mon, 12 Mar 2007:

>Due to a bug in one of my programs a folder got renamed to a name with a
>space at the end. I can't delete, move, or rename this folder. I can move
>the parent folder and it comes along. So I have moved it off to a problem
>area and renamed the parent. But I'd still like to get rid of it. I've
>booted my machine. I'd gone to the command prompt and tried putting double
>quotes around it plus a trailing space. I've tried tying to it under
>program control (with the trailing space). Nothing works. The error is
>always "The system cannot find the file specified."


Hi Don

This solution was posted by John John a couple of weeks ago and
succeeded where all else had failed :-)

>Open Windows Explorer and navigate to the parent folder of the
>undeletable folder. Leave the Explorer window open.
>
>Open a Command Prompt and type the partial command:
>
>RD "\\?\
>
>Leave the Command Prompt window open. From the opened Explorer window
>grab the undeletable folder and drag it to the Command Prompt and drop
>it at the end of the incomplete RD command that you typed earlier.
>Complete the command by encapsulating it with a set of quotation marks
>at the end of the command line. Make sure you are at the end of the
>line, in case of trailing spaces.


Some folder names, when dragged and dropped into the Command Window,
will have quotes already around them and this may cause you to get a
syntax error. If that happens, just try again but leave out the quote
marks after RD and don't add an extra set at the end of the line.

Good luck! Let us know how you get on.

--
Nightowl
 
Reply With Quote
 
Newbie Coder
Guest
Posts: n/a
 
      13th Mar 2007
Don Wiss,

Try using the command prompt to rename it. Failing that, safe mode then use
the command prompt to name it. You're better off using the 8.3 naming
convention when using the prompt

I hope this solves your problem,

--
Newbie Coder
(It's just a name)


 
Reply With Quote
 
Don Wiss
Guest
Posts: n/a
 
      13th Mar 2007
On Tue, 13 Mar 2007 01:25:30 +0000, Nightowl <owl@[127.0.0.1]> wrote:

>Don Wiss wrote:
>>Due to a bug in one of my programs a folder got renamed to a name with a
>>space at the end. I can't delete, move, or rename this folder. I can move


>This solution was posted by John John a couple of weeks ago and
>succeeded where all else had failed :-)
>
>>Open Windows Explorer and navigate to the parent folder of the
>>undeletable folder. Leave the Explorer window open.
>>
>>Open a Command Prompt and type the partial command:
>>
>>RD "\\?\
>>
>>Leave the Command Prompt window open. From the opened Explorer window
>>grab the undeletable folder and drag it to the Command Prompt and drop
>>it at the end of the incomplete RD command that you typed earlier.
>>Complete the command by encapsulating it with a set of quotation marks
>>at the end of the command line. Make sure you are at the end of the
>>line, in case of trailing spaces.

>
>Some folder names, when dragged and dropped into the Command Window,
>will have quotes already around them and this may cause you to get a
>syntax error. If that happens, just try again but leave out the quote
>marks after RD and don't add an extra set at the end of the line.


Yep. It worked. And yes I had to remove the first quote that appeared after
the command above that I typed. Thanks. Now there is no way that I would
have figured this syntax out by myself!

Don <www.donwiss.com> (e-mail link at home page bottom).
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot delete or rename folder =?Utf-8?B?bm9ydGhlbmQ=?= Windows Vista File Management 7 7th Feb 2007 01:42 PM
Can't delete or rename folder on XP =?Utf-8?B?TWFyaw==?= Windows XP General 3 11th Nov 2005 02:13 PM
Can't Rename and Delete Folder on Win XP =?Utf-8?B?TWFyaw==?= Windows XP Internet Explorer 0 8th Nov 2005 01:20 PM
Re: So can you either delete or rename a folder Sue Mosher [MVP-Outlook] Microsoft Outlook Discussion 0 2nd Aug 2004 07:11 PM
Folder ends with a space Huy Huynh Windows XP Performance 3 30th Dec 2003 08:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:14 PM.