D
D
Dmitry2021-04-11 14:33:57
Windows
Dmitry, 2021-04-11 14:33:57

How to remove a folder from the desktop?

My desktop is always empty. Sometimes I create files / folders there, if urgently needed, and after work I clean it up.
Today I created a folder tmp (temporary-temporary), used it, it's time to delete. But every time I try, they tell me that the file is already in use in some process.

Already tried:
1. Context menu
2. .bat:


cd Desktop
rmdir tmp
pause

3.Python:
import sys
from os import remove

path = f"{sys.argv[0]}\\..\\tmp"
remove(path)
input()


I hope for your help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2021-04-11
@ODNik

Reboot

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question