Solved

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

Posted on 2014-02-20
7
475 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
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 53

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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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 53

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 53

Expert Comment

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

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cannot Change Local DNS 9 63
GPO not being applied to Win7 Pro Image 5 48
Need To Expand VMware Disk Size 50 82
need software to view what is installed on AD computers 9 51
By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

860 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