I have a problem. I want to make a program that erases all files in specified folder except the one I type in.
I have a code:
But the problem is that it erases ALL files and the entire folder wich I have given it.Code:for /d %%a in (%1) do if /I not %%a == %2 rmdir /s /q %%a
Help plz :S
What are your intentions?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks