| |||||||
| Windows XP Discuss the Microsoft Windows XP Operating System |
![]() |
| | LinkBack | Thread Tools |
| |||
| 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. |
| |||
| 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. |
| |||
| 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. > > |
| |||
| 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. >> >> |
| |||
| 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` |
| |||
| 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. |
![]() |
| Bookmarks |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Long file names | Jack Russell | Windows XP | 3 | 04-15-2007 11:00 PM |
| Why does it take so long to delete a single file? | Flagreen | Windows Vista | 2 | 02-12-2007 11:02 AM |
| 2 HUGE .TMP files - To Delete or NOT Delete...that is the question | Mark D. | Windows XP | 9 | 01-04-2007 03:43 AM |
| Cannot delete file with long name | Dave Bolt | Windows XP | 6 | 01-04-2007 03:38 AM |
| MS-DOS long file names | Scott | Windows XP | 9 | 01-04-2007 02:13 AM |