Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista file management

File name too long for deletion

Closed Thread
 
Thread Tools Display Modes
Old 05-19-2007   #1 (permalink)
Shalalith
Guest


 

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?
Old 05-19-2007   #2 (permalink)
Jimmy Brush
Guest


 

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?

Old 05-20-2007   #3 (permalink)
Shalalith
Guest


 

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?

>

Old 05-20-2007   #4 (permalink)
Jimmy Brush
Guest


 

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?

>>

Old 05-20-2007   #5 (permalink)
dean-dean
Guest


 

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?

>>


Old 06-25-2007   #6 (permalink)
sharkethic86
Guest


 

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


Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
secure file deletion Zoloft Software 6 06-21-2008 01:21 AM
why can't I protect a file from deletion ? keepout Vista General 2 01-04-2008 04:55 PM
File deletion bug - and then what?!?! Lasse Live Folder Share 2 01-03-2008 05:55 AM
coping file from a remote file share - FILE IS NO LONG THERE bogus error message Heith Vista networking & sharing 0 10-18-2007 03:58 PM
Network file deletion Wally Vista file management 2 05-24-2007 10:20 AM








Vistax64.com 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 2005-2008

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 47 48 49 50