creating folders (F7) with \ / : * ? " < > | char

English support forum

Moderators: white, Hacker, petermad, Stefan2

ooo888
Junior Member
Junior Member
Posts: 14
Joined: 2006-03-13, 15:13 UTC

creating folders (F7) with \ / : * ? " < > | char

Post by *ooo888 »

hello guys,
i have this one problem. i created in total commander folder with name ____name /// - normaly when you do this in explorer it says that you cant create folder with following characters (mentioned in topic name). folder was created but without the last three brackets. i tried to delete the file afterwards in total commander, in explorer, command line, safe mode, various programs, checkdisk for errors on hdd but neither one of these methods worked.
whenever i want do del it, it says 'Cannot read from the source or disk' or 'Cannot find the specified file' ...
here - link - is some more stuff i posted up on other forum before i posted the issue here...
really dunno how to get rid of this file besides formating the hard drive. :?
any ideas how to solve are appreaticed. :wink:
User avatar
frenky
Senior Member
Senior Member
Posts: 250
Joined: 2005-07-30, 19:36 UTC

Post by *frenky »

ooo888
Junior Member
Junior Member
Posts: 14
Joined: 2006-03-13, 15:13 UTC

Post by *ooo888 »

yea, i checked that url before, but i am real dummy at this. can you write how should i slove it with that site? :D
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Microsoft Support Site wrote:Cause 6: The file name includes an invalid name in the Win32 name space
You may not be able to delete a file if the file name includes an invalid name (for example, the file name has a trailing space or a trailing period or the file name is made up of a space only). To resolve this issue, use a tool that uses the appropriate internal syntax to delete the file. You can use the "\\?" syntax with some tools to operate on these files, for example:
del "\\?\c:\path_to_file_that contains a trailing space.txt "
so

Code: Select all

del "\\?\c:\ ____name ///"

should work.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
ooo888
Junior Member
Junior Member
Posts: 14
Joined: 2006-03-13, 15:13 UTC

Post by *ooo888 »

ok. i tried...

Code: Select all

del "\\?\F:\[  lala  &  lalala  ]\![ lalalal & lalalala ]\___name"

Code: Select all

del "\\?\F:\[  lala  &  lalala  ]\![ lalalal & lalalala ]\___name "

Code: Select all

del "\\?\F:\[  lala  &  lalala  ]\![ lalalal & lalalala ]\___name ///"

the name of the folder is without those last three brackets tho in the first place i named the folder like that. instead of that the folder has free space at the end of it (like in second example).
of these, only the first one works... that is i get a command line window where it asks me YES/NO (to del that folder is suppose). i (Y) it. the folder is still there... so i tried the second and third option as written above but the command line window only flashes there for like 0.1s and disappears.

:roll:
User avatar
frenky
Senior Member
Senior Member
Posts: 250
Joined: 2005-07-30, 19:36 UTC

Post by *frenky »

Open command prompt window (cmd) and type what Sheepdog wrote.
What is reported by del command?

You are running XP and partition from where you are deleting the file is formatted as ntfs ?
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

try switching TC to show short names and press delete
I had a similar problem and that's how it got solved
TC for Linux please!
ooo888
Junior Member
Junior Member
Posts: 14
Joined: 2006-03-13, 15:13 UTC

Post by *ooo888 »

when i rewrite it in cmd it doesnt quite get that '&' char between the folder names so i wrote it in the TC command line instead... and it says nothing. i just say Yes and then the cmd quits and thats it (and the folder is still there).

i am running WinXP ProfessionalSp1 and the disk is non-system NTFS partition.
Last edited by ooo888 on 2006-03-13, 20:34 UTC, edited 1 time in total.
ooo888
Junior Member
Junior Member
Posts: 14
Joined: 2006-03-13, 15:13 UTC

Post by *ooo888 »

roentgen666. where can I do that? :)
User avatar
frenky
Senior Member
Senior Member
Posts: 250
Joined: 2005-07-30, 19:36 UTC

Post by *frenky »

ooo888 wrote:when i rewrite it in cmd it doesnt quite get that '&' char between the folder names so i wrote it in the TC command line instead... and it says nothing. i just say Yes and then the cmd quits and thats it (and the folder is still there).

i am running WinXP ProfessionalSp1 and the disk is non-system NTFS partition.
Folder... Del will not delete folder.

Use rmdir instead.
ooo888
Junior Member
Junior Member
Posts: 14
Joined: 2006-03-13, 15:13 UTC

Post by *ooo888 »

frenky wrote:Use rmdir instead.
file not found
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

ooo888 wrote:roentgen666. where can I do that? :)
Create a button with command "cm_SwitchLongNames" or set a Hotkey in Configuration->Options MIsc:Redefine Hotkeys (keyboard remapping).

By the way: I tried to create a folder "___name ///" and it was created a folder "___name" wich I can delete perfectly well.

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
frenky
Senior Member
Senior Member
Posts: 250
Joined: 2005-07-30, 19:36 UTC

Post by *frenky »

Sheepdog wrote:By the way: I tried to create a folder "___name ///" and it was created a folder "___name" wich I can delete perfectly well.
For me the same behavior too...

Maybe screenshot of the folder in mention will help...
ooo888
Junior Member
Junior Member
Posts: 14
Joined: 2006-03-13, 15:13 UTC

Post by *ooo888 »

ahhh, finaly got rid of it! switched to those short file names and then deleted it. :D
thank you guys :wink:
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

thank you guys
you're wellcome
I tried to create a folder "___name ///" and it was created a folder "___name"
not here. I get: Error: Directory [___name ///] not created.
Latest versions of XP pro and TC to date. NTFS partition :P

[later edit]
funny TC ... not created means created after all
Last edited by roentgen on 2006-03-13, 21:04 UTC, edited 1 time in total.
TC for Linux please!
Post Reply