![]() | |
| |||||||
| Home | Register | Blogs | FAQ | Members List | Calendar | Downloads | Arcade | Mark Forums Read |
| Software Вопросы по программному обеспечению |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 |
| Administrator Join Date: Sep 2001 Location: Yerevan, Armenia
Posts: 7,069
Blog Entries: 15 Rep Power: 10 Reputation:
246 | By Abby aka chaxid (Updated 10/03/2003) How often have you downloaded something off of a peer-2-peer network, or maybe someone uploads something suspicious to your FTP server, and you end up with files that you just can't erase? It's a frustrating thing I have to say, since Windows gives you the most obnoxious error messages: Error renaming file or folder Cannot rename file: Cannot read from the source file or disk. -or maybe- Error deleting file or folder Cannot delete file: Cannot read from the source file or disk. These errors are caused by filenames being created that are not valid or are reserved by Windows. This is much different then a file simply being read-only or perhaps a system file, in which case you could use the "attrib" command to set the file so that it can be deleted. attrib -s -h -r <filename> Well you really don't have to put up with it. A Microsoft Knowledge Base Article shows you how you can delete these files quite easily. I'll cite some of the information in that article here, as it is the best solution to this problem. In fact, the entire problem can be addressed by issuing a simple command: DEL \\.\driveletter:\path\filename [ for files ] or RD \\.\<driveletter>:\<path>\<directory name> [ for directories ] If the filename is too long or complicated to disect, always remember that spaces in MS-DOS are denoted by a slash or " / ". That should solve the problem with very long file names that contain spaces. Or you could issue a wildcard statement that would just eliminate all files in the directory. The reason that the above commands work, rather than the standard explorer delete commands, is because they "bypass reverse-word checks". I'm not entirely familiar with reverse-word checks but I'd assume that it is the mechanism that checks for the validity of a filename before the file is manipulated or deleted. Link: http://www.datiku.com/tutorials/wind..._win_files.htm |
| | |
| | #2 |
| Грустно... | Использования Юникод имен? Может не сработать по Окошки 95/98/Ме ![]()
__________________ Хотели, как лучше, а получилось даже хуже... Лозунг шахматиста: На каждый шах - ответим матом! В сумасшедшем доме каждый мог говорить все, что взбредет ему в голову, словно в парламенте. Я. Гашек. "Приключения Бравого Солдата Швейка". Часть 1. Глава IV. Абзац 2. |
| | |
| | #3 |
| ЙЦУКЕН | ндя .... виндовз - эта такая "вещь в себе" ![]() |
| | |
| | #5 |
| Administrator Join Date: Sep 2001 Location: Yerevan, Armenia
Posts: 7,069
Blog Entries: 15 Rep Power: 10 Reputation:
246 | Кстати у самого не получилось таким способом. Какой-то файл создал пкунзип, у которого никак не видать имени. И видать это не пробел. Удалить или переименовать ну никак не могу, входить получается. Эни айдиа? |
| | |
| | #6 | |
| Administrator | Quote:
![]()
__________________ И повешенные могут качаться в неположенную сторону. /С.Е.Лец/ | |
| | |
| | #8 |
| Administrator Join Date: Sep 2001 Location: Yerevan, Armenia
Posts: 7,069
Blog Entries: 15 Rep Power: 10 Reputation:
246 | Получилось ! Для этого нужно было убить explorer.exe, удалить файл у которого не было имени из коммандой строки и опять врубить ехплорер обратно Терд мерни гитутиун. |
| | |
| | #9 |
| Administrator | н-да, не успел, ну да ладно, может кому пригодится эта инфа ![]() Тут совет, как не "убивать" Explorer, но завершить его культурным образом. ====== ====== ====== ====== ====== ====== ====== ====== 1. Open a Command Prompt window and leave it open. 2. Close all open programs. 3. You now need to close EXPLORER.EXE. The proper way to shutdown Explorer is to raise the "Shut Down Windows" dialog (select "Shut Down..." from the start menu), hold down CTRL+SHIFT+ALT and press the CANCEL button. Explorer will exit cleanly. Note: The <CTRL+ALT+DEL> at the 'Shut Down Windows' dialog method of closing Explorer is built into Explorer. (It was specifically designed so that developers writing Shell Extensions could get Explorer to release their Shell Extension DLLs while debugging them). 4. Go back to the Command Prompt window and change to the directory where the undeletable file is located in. At the command prompt type DEL <filename> where <filename> is the file you wish to delete. 5. Go back to Task Manager, click File, New Task and enter EXPLORER.EXE to restart the GUI shell. /tip by James R. Twine/ ====== ====== ====== ====== ====== ====== ====== ======
__________________ И повешенные могут качаться в неположенную сторону. /С.Е.Лец/ |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |