ZTree.com  | ZEN  | About...  

 Index   Back

[TIP] delete files with illegal characters   [Tip]

By: Juergen Hestermann       
Date: Jan 18,2001 at 20:52
In Response to: [TIP] delete files with illegal characters (ljp)

> I had somehow managed to create a file named ?
> which I couldn't delete (illegal filename). I
> found this tip, and wanted to share it here.

> del \\.\Drive:\directory\filename

> so, in my case
> del \\.\G:\WINNT\?

> deleted that rascal ? file that's plagued me for
> weeks.

Be careful. The command you gave deletes *all* files in the directory consisting of only one character because the ? is taken as a wildcard (where your problem file is included).

> Don't ask how I created a filename with illegal
> characters, I don't know. Better yet- ask MS why
> the file system allowed a file to be created with
> illegal characters in the file name, but wouldn't
> let it be deleted.

> Lots of great tips at
> http://www.jsiinc.com/reghack.htm

786 views      
Thread locked
 

Messages in this Thread

 
96,640 Postings in 12,231 Threads, 350 registered users, 53 users online (0 registered, 53 guests)
Index | Admin contact |   Forum Time: Apr 18, 2024 - 5:22 pm UTC  |  Hits:62,916,189  (10,613 Today )
RSS Feed