Skip to content

windows configuration

Kittipong R edited this page Mar 19, 2016 · 7 revisions

Annoyance

Remove files and folders

If you are trying to remove files and folders and ran into a problem -- unable to delete. It usually comes down to these potential problems: files are being used by a process, executable are running, or access permissions. Here are some commands to resolve the problems...

## List tasks
## * http://superuser.com/questions/914782/how-do-you-list-all-processes-on-the-command-line-in-windows
> tasklist
> tasklist | findstr "firefox.exe"
## Powershell
> get-process

## Kill the task -- pid(/PID), name(/IM)
> taskkill /?

## Display a shortname (DOS 8.3-format) and long name of files and folder
## And delete a folder
> dir /x
> rmdir /q /s <shortname>

Clone this wiki locally