View Full Version : deleting a file with a long file name?
neonmasters
02-07-2002, 10:54 PM
I accidently downloaded a file with a hidden long file name. When I try to delete, move, or rename this file.. I get an error message telling me that the file name is to long? Im using windows 98. Any help will be greatly appreciated...thanks Mark
reghakr
02-07-2002, 11:43 PM
A possible solution:
You may be able to delete or rename the file or folder using one of the following methods:
If you want to delete a file, try to delete the file using the DEL command and "*.*" wildcard designator. Note that this method deletes all the files in the folder containing the file you want to delete, so you should move all the files you want to save to a different folder first. To do so, follow these steps:
Type the following commands at an MS-DOS command prompt. Press ENTER after each command:
cd \
md keep
Copy all the files you want to save from the folder containing the file you want to delete to the KEEP folder you created in step 1.
In the directory containing the file you want to delete, type the following command at an MS-DOS command prompt and press ENTER:
del *.*
For files and folders, you may be able to delete or rename the file or folder using the "?" wildcard designator to represent the extended characters in the file or folder name. For example, if the first character in the filename README.TXT were replaced by a character from the extended character set, you could use the following command to rename the file back to README.TXT:
ren ?eadme.txt readme.txt
NOTE: The "?" wildcard designator is used to represent any character in the wildcard designator's position. Use caution when you use this method to make sure you do not inadvertently delete or rename files other than the intended file.
For files or folders, you may be able to delete the file or folder using the DELTREE command. To do so, change to the affected folder and type "deltree *.*" (without quotation marks). Confirm only the files and folders you want to delete. The DELTREE command removes files and folders without regard to extended characters in their names.
reghakr
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.