How to Delete a file you can not delete
:: Start :: Technology :: Computer & Internet
Page 1 of 1
How to Delete a file you can not delete
-End explorer.exe process tree in task manager.
-Open command prompt in administrator mode.
-Delete file with DEL [filename] /f /q
-Close command prompt window
-then restart explorer.exe
REMOVE FOLDERS
RmDIR /s /q
-Open command prompt in administrator mode.
-Delete file with DEL [filename] /f /q
-Close command prompt window
-then restart explorer.exe
REMOVE FOLDERS
RmDIR /s /q
sunt- Number of posts : 145
Registration date : 2008-11-14
Re: How to Delete a file you can not delete
10.6 Deletion: rm and rmdir
10.6.1 rm
rm(1) removes files and directory trees. DOS users will notice the similarity to both the del and deltree commands. rm can be very dangerous if you do not watch yourself. While it is sometimes possible to retrieve a recently deleted file, it can be complicated (and potentially costly) and is beyond the scope of this book.
To remove a single file, specify its name when you run rm:
If the file has write permissions removed, you may get a permission denied error message. To force removal of the file no matter what, pass the -f option, like this:
To remove an entire directory, you use the -r and -f options together. This is a good example of how to delete the entire contents of your hard drive. You really don't want to do this. But here's the command anyway:
Be very careful with rm; you can shoot yourself in the foot. There are several command line options, which are discussed in detail in the online manual page.
10.6.2 rmdir
rmdir(1) removes directories from the filesystem. The directory must be empty before it can be removed. The syntax is simply:
This example will remove the hejaz subdirectory in the current working directory:
If that directory does not exist, rmdir will tell you. You can also specify a full path to a directory to remove, as this example shows:
That example will try to remove the hejaz directory inside the /tmp directory.
You can also remove a directory and all of its parent directories by passing the -p option.
This will first try to remove the hejaz directory inside /tmp. If that is successful, it will try to remove /tmp. rmdir will continue this until an error is encountered or the entire tree specified is removed.
taken from http://www.slackbook.org/html/file-commands-deletion.html
10.6.1 rm
rm(1) removes files and directory trees. DOS users will notice the similarity to both the del and deltree commands. rm can be very dangerous if you do not watch yourself. While it is sometimes possible to retrieve a recently deleted file, it can be complicated (and potentially costly) and is beyond the scope of this book.
To remove a single file, specify its name when you run rm:
% rm file1 |
% rm -f file1 |
# rm -rf / |
10.6.2 rmdir
rmdir(1) removes directories from the filesystem. The directory must be empty before it can be removed. The syntax is simply:
% rmdir |
% rmdir hejaz |
% rmdir /tmp/hejaz |
You can also remove a directory and all of its parent directories by passing the -p option.
% rmdir -p /tmp/hejaz |
taken from http://www.slackbook.org/html/file-commands-deletion.html
sunt- Number of posts : 145
Registration date : 2008-11-14
Similar topics
» File Your Income Tax for Free
» How to install a .run file in Linux
» Status file could not be parsed/ mergelist issues
» Rotate a MOV file to a diff video format with Quicktime(Pro)
» wmic is not recognized as an internal or external command, operable program or batch file
» How to install a .run file in Linux
» Status file could not be parsed/ mergelist issues
» Rotate a MOV file to a diff video format with Quicktime(Pro)
» wmic is not recognized as an internal or external command, operable program or batch file
:: Start :: Technology :: Computer & Internet
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum