PC Review


Reply
Thread Tools Rate Thread

Delete files w/long names using DOS

 
 
=?Utf-8?B?VGFmZWlsbGU=?=
Guest
Posts: n/a
 
      17th May 2007
I have XP Home Edition. Virus recently messed everything up. Before getting
fixed want to delete files no longer needed but cannot get to Programs or
Desktop while in safe mode. Can get to C prompt and DOS. I deleted files with
short names but can't delete ones with more than 8 characters. Is there a way
to delete the long-lettered files using DOS? I don't want to delete whole
subdirectories, just particular files in them. Thanks.
 
Reply With Quote
 
 
 
 
Joe Grover
Guest
Posts: n/a
 
      17th May 2007
Type: dir /x

That will give you a column that shows you the 8.3 filename for your files.

For example, address book.txt also shows up as ADDRES~1.TXT. Then you could
delete addres~1.txt

Joe

"Tafeille" <(E-Mail Removed)> wrote in message
news:F65151D8-86E3-459E-B515-(E-Mail Removed)...
>I have XP Home Edition. Virus recently messed everything up. Before getting
> fixed want to delete files no longer needed but cannot get to Programs or
> Desktop while in safe mode. Can get to C prompt and DOS. I deleted files
> with
> short names but can't delete ones with more than 8 characters. Is there a
> way
> to delete the long-lettered files using DOS? I don't want to delete whole
> subdirectories, just particular files in them. Thanks.


 
Reply With Quote
 
=?Utf-8?B?VGFmZWlsbGU=?=
Guest
Posts: n/a
 
      18th May 2007
I'll try that. I wonder, though, is it copying the file and I'm deleting the
new file? Or is it renaming it?

"Joe Grover" wrote:

> Type: dir /x
>
> That will give you a column that shows you the 8.3 filename for your files.
>
> For example, address book.txt also shows up as ADDRES~1.TXT. Then you could
> delete addres~1.txt
>
> Joe
>
> "Tafeille" <(E-Mail Removed)> wrote in message
> news:F65151D8-86E3-459E-B515-(E-Mail Removed)...
> >I have XP Home Edition. Virus recently messed everything up. Before getting
> > fixed want to delete files no longer needed but cannot get to Programs or
> > Desktop while in safe mode. Can get to C prompt and DOS. I deleted files
> > with
> > short names but can't delete ones with more than 8 characters. Is there a
> > way
> > to delete the long-lettered files using DOS? I don't want to delete whole
> > subdirectories, just particular files in them. Thanks.

>
>

 
Reply With Quote
 
Joe Grover
Guest
Posts: n/a
 
      18th May 2007
It's only showing you the file using both long and short filenames. The /x
switch is just a sorting switch. It's the same file.

Joe


"Tafeille" <(E-Mail Removed)> wrote in message
news:E3A1FD93-3F5E-4FDE-9555-(E-Mail Removed)...
> I'll try that. I wonder, though, is it copying the file and I'm deleting
> the
> new file? Or is it renaming it?
>
> "Joe Grover" wrote:
>
>> Type: dir /x
>>
>> That will give you a column that shows you the 8.3 filename for your
>> files.
>>
>> For example, address book.txt also shows up as ADDRES~1.TXT. Then you
>> could
>> delete addres~1.txt
>>
>> Joe
>>
>> "Tafeille" <(E-Mail Removed)> wrote in message
>> news:F65151D8-86E3-459E-B515-(E-Mail Removed)...
>> >I have XP Home Edition. Virus recently messed everything up. Before
>> >getting
>> > fixed want to delete files no longer needed but cannot get to Programs
>> > or
>> > Desktop while in safe mode. Can get to C prompt and DOS. I deleted
>> > files
>> > with
>> > short names but can't delete ones with more than 8 characters. Is there
>> > a
>> > way
>> > to delete the long-lettered files using DOS? I don't want to delete
>> > whole
>> > subdirectories, just particular files in them. Thanks.

>>
>>


 
Reply With Quote
 
Poprivet
Guest
Posts: n/a
 
      18th May 2007
Tafeille wrote:
> I have XP Home Edition. Virus recently messed everything up. Before
> getting fixed want to delete files no longer needed but cannot get to
> Programs or Desktop while in safe mode. Can get to C prompt and DOS.
> I deleted files with short names but can't delete ones with more than
> 8 characters. Is there a way to delete the long-lettered files using
> DOS? I don't want to delete whole subdirectories, just particular
> files in them. Thanks.


I assume by DOS you mean the Command Prompt:

Put quotes around the filenames.

e.g. del "x:\my long name \*.dll" or del x:\"my long name"\*.dll are the
same thing.

Or, do a dir and use the exact name as it shows if it has a ~ in it; e.g.
del x:\mylong~1.dll

HTH
Pop`



 
Reply With Quote
 
=?Utf-8?B?VGFmZWlsbGU=?=
Guest
Posts: n/a
 
      18th May 2007
To Joe Grover & Poprivet:

Thank you so much for the help. I tried the suggestions from both of you
and, I'm happy to say, they both worked. Plus, I got two other suggestions
from a friend of mine and they both worked also. So now I have a whole
arsenal of ways to get rid of those files. Thanks again. You two were great.

"Tafeille" wrote:

> I have XP Home Edition. Virus recently messed everything up. Before getting
> fixed want to delete files no longer needed but cannot get to Programs or
> Desktop while in safe mode. Can get to C prompt and DOS. I deleted files with
> short names but can't delete ones with more than 8 characters. Is there a way
> to delete the long-lettered files using DOS? I don't want to delete whole
> subdirectories, just particular files in them. Thanks.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
http://LongPathTool.com - copy and delete path too long filesWindows tool to copy or delete files and folders with path too long orfilename too long error. Just browse to the file and press a button to copyor detele it, thats it! The applicati Martin Krag Windows XP MovieMaker 0 24th Apr 2011 12:27 PM
http://LongPathTool.com - find and delete/copy path too long filesfrom your hard drive or LAN Windows tool to copy or delete files and folderswith path too long or filename too long error. Just browse to the file andpress a button to copy or d Martin Krag Windows XP Configuration 0 22nd Apr 2011 10:05 AM
Re: CAn some help? cannot delete files as 'names too long for filesystem' Mr. Arnold Windows Vista General Discussion 0 25th Jun 2008 06:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:34 PM.