Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 482
  • Last Modified:

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

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
coachjim
Asked:
coachjim
1 Solution
 
helpfinderCommented:
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
 
Joe Winograd, EE MVE 2015&2016DeveloperCommented:
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
 
Darr247Commented:
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
coachjimAuthor Commented:
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
 
Joe Winograd, EE MVE 2015&2016DeveloperCommented:
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
 
coachjimAuthor Commented:
What can I say...thanks.
0
 
Joe Winograd, EE MVE 2015&2016DeveloperCommented:
You're welcome. Happy to help. Regards, Joe
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now