Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 05-17-2007, 01:50 PM
Tafeille
Newsgroup Contributor
 
Posts: n/a
Delete files w/long names using DOS

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 05-17-2007, 01:50 PM
  #2 (permalink)  
Old 05-17-2007, 02:10 PM
Joe Grover
Newsgroup Contributor
 
Posts: n/a
Re: Delete files w/long names using DOS

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" <Tafeille@discussions.microsoft.com> wrote in message
news:F65151D8-86E3-459E-B515-1113623B4E76@microsoft.com...
>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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 05-17-2007, 07:30 PM
Tafeille
Newsgroup Contributor
 
Posts: n/a
Re: Delete files w/long names using DOS

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" <Tafeille@discussions.microsoft.com> wrote in message
> news:F65151D8-86E3-459E-B515-1113623B4E76@microsoft.com...
> >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.

>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 05-18-2007, 05:20 AM
Joe Grover
Newsgroup Contributor
 
Posts: n/a
Re: Delete files w/long names using DOS

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" <Tafeille@discussions.microsoft.com> wrote in message
news:E3A1FD93-3F5E-4FDE-9555-266B9EED5645@microsoft.com...
> 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" <Tafeille@discussions.microsoft.com> wrote in message
>> news:F65151D8-86E3-459E-B515-1113623B4E76@microsoft.com...
>> >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.

>>
>>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 05-18-2007, 11:41 AM
Poprivet
Newsgroup Contributor
 
Posts: n/a
Re: Delete files w/long names using DOS

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`



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #6 (permalink)  
Old 05-18-2007, 02:00 PM
Tafeille
Newsgroup Contributor
 
Posts: n/a
RE: Delete files w/long names using DOS

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: CAn some help? cannot delete files as 'names too long for filesystem' Mr. Arnold Windows Vista 0 06-24-2008 10:20 PM
Fix for long, long, long deleting and copying of files? Hope Windows Vista 14 02-10-2008 04:20 PM
Long File Names in XP Marleneburton Windows XP 1 01-11-2008 07:51 AM
Long file names Jack Russell Windows XP 3 04-16-2007 12:00 AM
MS-DOS long file names Scott Windows XP 9 01-04-2007 02:13 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 07:59 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0