Hello,
I need to write a batch file to delete a folder or directory which is empty. How can I do this? First of all how to identify that a directory is empty? I have also found the commands which work on the command prompt, so that I can use them. But the problem is that when i try to compile the code in the batch file the commands do not work there.
Here is what I have tried
Code:@echo off cd.. cd.. cd.. cd.. cd seth cd desktop IF NOT EXIST key.txt DEL test.txt exit
Bookmarks