Answer the question
In order to leave comments, you need to log in
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
import sys
from os import remove
path = f"{sys.argv[0]}\\..\\tmp"
remove(path)
input()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question