Solved

How to change folder names that include an illegal character "[]"

Posted on 2014-02-20
7
477 Views
Last Modified: 2014-02-23
I did a dumb thing.  I put brackets into folder names.  I just figured out that's the reason I'm unable to save Excel files into those folders.

So now I tried renaming those folders and I can't.  So I make a new folder, copy the files from the bad named one to the new one and then try to delete the bad folder.  I can't delete it either.

What can I do to either rename or delete a folder whose name contains an illegal character?
0
Comment
Question by:coachjim
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 19

Expert Comment

by:helpfinder
ID: 39873963
try to boot into safe mode and delete from  here
also you can make bootable live CD/USB of Ubutnu for example and try to delete that folders from here
0
 
LVL 54

Accepted Solution

by:
Joe Winograd, EE MVE earned 500 total points
ID: 39873990
Hi Jim,
That's not the reason you can't save files into those folders. The "[" and "]" characters (left and right square brackets) are valid for file and folder names. Look elsewhere for your problem, such as a write permissions issue. FYI, here's a list the characters that are not valid in a file/folder name:

< (less than)
> (greater than)
: (colon)
" (double quote)
/ (forward slash)
\ (backslash)
| (vertical bar or pipe)
? (question mark)
* (asterisk)
Integer value zero (ASCII NUL character)
Integer values 1-31 (except for alternate data streams where these characters are allowed)

Regards, Joe
0
 
LVL 44

Expert Comment

by:Darr247
ID: 39874745
Probably not the case here, but device names (like COM1, LPT1, et al) are forbidden as folder or file names (in windows, at least), too.

e.g.
AUX
CLOCK$
COM#  (but COM## and more is OK)
CON
LPT#  (but LPT## and more is OK)
NUL
PRN
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Author Comment

by:coachjim
ID: 39875345
Thanks Joe, I just tried deleting a folder with just text and got the same message:

"The action can't be completed because the folder or a file in it is open in another program."

I've now been able to do it, but it was weird and I need to futz with it to be able to explain what I did.

Until then...thanks.
0
 
LVL 54

Expert Comment

by:Joe Winograd, EE MVE
ID: 39875421
You're welcome, Jim. No surprise that you got the same message with just text in the folder name, since the left and right brackets are perfectly valid in folder/file names.

So, is everything OK now or are you still having problems? Regards, Joe
0
 
LVL 2

Author Closing Comment

by:coachjim
ID: 39880700
What can I say...thanks.
0
 
LVL 54

Expert Comment

by:Joe Winograd, EE MVE
ID: 39880703
You're welcome. Happy to help. Regards, Joe
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows 7 to Windows 10 and back. IE 9.0, 10.0, 11.0 10 85
IPC$ Password 13 47
Why does my Dell Precision tower 5810 not boot? 13 103
Can't Login to Laptop 18 44
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question