Problem with folders with special chars in names \ and /

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
Mariolodz
Junior Member
Junior Member
Posts: 10
Joined: 2005-09-22, 19:50 UTC
Location: Poland

Problem with folders with special chars in names \ and /

Post by *Mariolodz »

Total Commander allows to create a folder named with a special chars like '/' and '\'. Those folders could not be delated. I thing that's it is a mistake. TC shouldn't allows me to create those folder.
How can I delete them?

Mario
User avatar
TLis
Member
Member
Posts: 111
Joined: 2004-06-02, 16:48 UTC
Location: Szczecin, Poland

Post by *TLis »

Are you sure about it? When I create a folder named 'a/b' I get two folders created in this single command. The first one is 'a', which has a subfolder named 'b'. The same happens for 'a\b'

TLis
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Ditto here

Post by *Clo »

2TLis
:) Hello !

- You are right, I just tested with the same result here under Win 98 SE.
- To create a dir "U:\1Test/A" leads to get "U:\1Test\A"

:arrow: Mariolodz
- Please, could you give us examples for names which causes the issue @ your's ?

:mrgreen: Kind regards,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

How can I delete them?
Try to switch the file display to 8.3 short names.
(you may create a button with cm_SwitchLongNames command)

This should allow you to delete them.
#5767 Personal license
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Re: Ditto here

Post by *Sheepdog »

Clo wrote:- To create a dir "U:\1Test/A" leads to get "U:\1Test\A"
You could eve create a dir above your curent dir:

you are in C:\test\

and create a folder "..\test2\sub1\sub2"
and will get this

c:\test\
c:\test2\sub1\sub2

and create multiple folder

"..\test2\sub1|..\test3\sub2"

and will get this

c:\test\
c:\test2\sub1\
c:\test3\sub2

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Mariolodz
Junior Member
Junior Member
Posts: 10
Joined: 2005-09-22, 19:50 UTC
Location: Poland

Post by *Mariolodz »

Try this:
F7 and 'a / \ '
without ' (a space space slash space backslash)
User avatar
Mariolodz
Junior Member
Junior Member
Posts: 10
Joined: 2005-09-22, 19:50 UTC
Location: Poland

Post by *Mariolodz »

sqa_wizard wrote:
How can I delete them?
Try to switch the file display to 8.3 short names.
(you may create a button with cm_SwitchLongNames command)

This should allow you to delete them.
Unfortunately it doesn't work :(
I tried to delete this strange folder from DOS (boot from disk with "Windows Me") but I can't delete it either.

Mario
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

I tried to create a folder with "a / " and ther are created two folders:
one "a" and one "a ".
And that is apparently the touble as Windows cuts the concluding space.

Mariolodz wrote:Unfortunately it doesn't work :(
I tried to delete this strange folder from DOS (boot from disk with "Windows Me") but I can't delete it either.

Mario
This should work. After pressing the "cm_SwitchLongNames" button the folder should be displayed as "anyth~" and this folder you can delete from within TC. This had worked at me for many different occasions with Unicode-names ans names in chinese or japanese.

And it worked for the described "a " folder as well (although it can't be deleted with it's long name).

sheepdogt
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Mariolodz
Junior Member
Junior Member
Posts: 10
Joined: 2005-09-22, 19:50 UTC
Location: Poland

Post by *Mariolodz »

Sheepdog wrote:
This should work. After pressing the "cm_SwitchLongNames" button the folder should be displayed as "anyth~" and this folder you can delete from within TC. This had worked at me for many different occasions with Unicode-names ans names in chinese or japanese.

And it worked for the described "a " folder as well (although it can't be deleted with it's long name).

sheepdogt
I create another undeleted folder :(
at the side http://test.bv.pl/mario/download/blad.gif you can see free folders witch I can't delete.
The error box inform that "Can't elete the file: CAN'T READ FROM FILE OR FROM SOURCE DISK

So. I've got a problem ;(
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Do you use FAT32 or NTFS?

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Mariolodz
Junior Member
Junior Member
Posts: 10
Joined: 2005-09-22, 19:50 UTC
Location: Poland

Post by *Mariolodz »

FAT 32
User avatar
Mariolodz
Junior Member
Junior Member
Posts: 10
Joined: 2005-09-22, 19:50 UTC
Location: Poland

Post by *Mariolodz »

I can add you some more information:
1. long name view: http://test.bv.pl/mario/download/long-name.gif
2. Short name view http://test.bv.pl/mario/download/short-name.gif
3. I can copy the strange folder but then the name of the folder is changing by the program or system. The space after letter is removed
4. I can't see a properties of this folder
5. restart windows doesn't help :(

Mario
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Very strange.

With NTFS I would have guessed it could be an access-rights problem.

Just try in the dos box the following command from within e:\aa

Code: Select all

rd . /s /q 
but ATTENTION this will delete all folders and subfolders in the current dir.

But in your folder e:\aa this should be no problem. I got an error-message that 'the process cant access the file because it were in use by another process. But neverthless it deleted the folder and all its content.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Or try from e:\

Code: Select all

rd aa /q /s 
what should remove e:\aa with all it's subfolders.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Clas Hortien
Senior Member
Senior Member
Posts: 200
Joined: 2003-03-03, 15:03 UTC

Post by *Clas Hortien »

You might can delete it with

ren a* b
rd b /s

The rename function helped my in such cases from time to time.
#14041
Post Reply