I need to delete a directory. But the directory contains some files and subdirectories. When I use RMDir. It says that the directory is not empty. Is there any other way?
rmdir /s /q
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ceige I tried with the following code. But it gives compilation syntax error. Can you please tell me the format.
Dim Path as String
Path = "c:\test"
rmdir /s/q Path
Don't use the Robot built in RMDir. The RMDir I refer to is done through a command prompt.
So do something like:
StartApplication "CMD /C RMDIR /s /q PATH"