Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista file management

Vista - File name too long for deletion

Reply
 
Old 05-19-2007   #1 (permalink)
Shalalith


 
 

File name too long for deletion

I have a filename that is really long, but vista will not let me delete it.
I have tried several other ways, but they do not work. I also cannot rename
it so that the name is smaller. What should I do?

My System SpecsSystem Spec
Old 05-20-2007   #2 (permalink)
Jimmy Brush


 
 

Re: File name too long for deletion

Try this:

- Open an elevated command prompt (right-click, run as administrator)
- Type the following:

del "\\?\PATH_TO_FILE\filename"

Where PATH_TO_FILE is the full path to the file. For example, if the
file was named:

This is a really huge file

And it was located in:

c:\users\me\documents

You would type:

del "\\?\c:\users\me\documents\This is a really huge file"

--
-JB
Microsoft MVP - Windows Shell
Windows Vista Support FAQ - http://www.jimmah.com/vista/

On Sat, 19 May 2007 20:51:01 -0700, Shalalith
<Shalalith@discussions.microsoft.com> wrote:

>I have a filename that is really long, but vista will not let me delete it.
>I have tried several other ways, but they do not work. I also cannot rename
>it so that the name is smaller. What should I do?

My System SpecsSystem Spec
Old 05-20-2007   #3 (permalink)
Shalalith


 
 

Re: File name too long for deletion

Thank you for trying Jimmy, but unfortunately that didn't work. Command
Prompt gave me a Filename or Extention too long for deletion.

"Jimmy Brush" wrote:

> Try this:
>
> - Open an elevated command prompt (right-click, run as administrator)
> - Type the following:
>
> del "\\?\PATH_TO_FILE\filename"
>
> Where PATH_TO_FILE is the full path to the file. For example, if the
> file was named:
>
> This is a really huge file
>
> And it was located in:
>
> c:\users\me\documents
>
> You would type:
>
> del "\\?\c:\users\me\documents\This is a really huge file"
>
> --
> -JB
> Microsoft MVP - Windows Shell
> Windows Vista Support FAQ - http://www.jimmah.com/vista/
>
> On Sat, 19 May 2007 20:51:01 -0700, Shalalith
> <Shalalith@discussions.microsoft.com> wrote:
>
> >I have a filename that is really long, but vista will not let me delete it.
> >I have tried several other ways, but they do not work. I also cannot rename
> >it so that the name is smaller. What should I do?

>

My System SpecsSystem Spec
Old 05-20-2007   #4 (permalink)
Jimmy Brush


 
 

Re: File name too long for deletion

Can you post the name of the file? Or, post what folder the file is
in, and how many characters is in the file name?

--
-JB
Microsoft MVP - Windows Shell
Windows Vista Support FAQ - http://www.jimmah.com/vista/

On Sun, 20 May 2007 10:56:02 -0700, Shalalith
<Shalalith@discussions.microsoft.com> wrote:

>Thank you for trying Jimmy, but unfortunately that didn't work. Command
>Prompt gave me a Filename or Extention too long for deletion.
>
>"Jimmy Brush" wrote:
>
>> Try this:
>>
>> - Open an elevated command prompt (right-click, run as administrator)
>> - Type the following:
>>
>> del "\\?\PATH_TO_FILE\filename"
>>
>> Where PATH_TO_FILE is the full path to the file. For example, if the
>> file was named:
>>
>> This is a really huge file
>>
>> And it was located in:
>>
>> c:\users\me\documents
>>
>> You would type:
>>
>> del "\\?\c:\users\me\documents\This is a really huge file"
>>
>> --
>> -JB
>> Microsoft MVP - Windows Shell
>> Windows Vista Support FAQ - http://www.jimmah.com/vista/
>>
>> On Sat, 19 May 2007 20:51:01 -0700, Shalalith
>> <Shalalith@discussions.microsoft.com> wrote:
>>
>> >I have a filename that is really long, but vista will not let me delete it.
>> >I have tried several other ways, but they do not work. I also cannot rename
>> >it so that the name is smaller. What should I do?

>>

My System SpecsSystem Spec
Old 05-20-2007   #5 (permalink)
dean-dean


 
 

Re: File name too long for deletion

Can you temporarily shorten the file's path, by renaming the parent folders?
For example, from
C:\FancyName1\FancyName2\FancyName3\FancyName4\Thisisareallyhugefile.xxx
To
C:\1\2\3\4\Thisisareallyhugefile.xxx

Is the file movable?
Create a temporary new account, move the file under that account, and then
delete the account.

Or, you could try this utility:
http://www.purgeie.com/delinv/index.htm

"Shalalith" <Shalalith@discussions.microsoft.com> wrote in message
news:1B779C2C-A6E6-4660-9518-44ADFB204C5A@microsoft.com...
> Thank you for trying Jimmy, but unfortunately that didn't work. Command
> Prompt gave me a Filename or Extention too long for deletion.
>
> "Jimmy Brush" wrote:
>
>> Try this:
>>
>> - Open an elevated command prompt (right-click, run as administrator)
>> - Type the following:
>>
>> del "\\?\PATH_TO_FILE\filename"
>>
>> Where PATH_TO_FILE is the full path to the file. For example, if the
>> file was named:
>>
>> This is a really huge file
>>
>> And it was located in:
>>
>> c:\users\me\documents
>>
>> You would type:
>>
>> del "\\?\c:\users\me\documents\This is a really huge file"
>>
>> --
>> -JB
>> Microsoft MVP - Windows Shell
>> Windows Vista Support FAQ - http://www.jimmah.com/vista/
>>
>> On Sat, 19 May 2007 20:51:01 -0700, Shalalith
>> <Shalalith@discussions.microsoft.com> wrote:
>>
>> >I have a filename that is really long, but vista will not let me delete
>> >it.
>> >I have tried several other ways, but they do not work. I also cannot
>> >rename
>> >it so that the name is smaller. What should I do?

>>


My System SpecsSystem Spec
Old 06-25-2007   #6 (permalink)
sharkethic86


 
 

Re: File name too long for deletion

I love you dean-dean.. this utility worked perfectly. <3


> Or, you could try this utility:
> http://www.purgeie.com/delinv/index.htm


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
File Deletion Vista General
File deletion Vista General
coping file from a remote file share - FILE IS NO LONG THERE bogus error message Vista networking & sharing
File Deletion - Gone but Return! Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46