Hey!
Long story short: I want to delete all files from a folder. There are a few normal folders inside of it, aswell as .dat files.
Now the problem: A couple sites suggested that rmdir /S should delete all the files inside the directory. But for me, it only deletes the folders and not those .dat files.
Here's my coding:
rmdir "C:\Users\NAME\Desktop\1.8.9_Forge\world\" /S /Q
Can't find anything different than that, except really difficult coding, which I can't really comprehend.
It shouldn't be that hard to delete everything from a folder, right?
Maybe this could help a bit:
All I want to write, is a batch-file that stops my Minecraft server, deletes the current (destroyed) world, replaces it with an original copy and starts the server again.
Hope someone can help me
Long story short: I want to delete all files from a folder. There are a few normal folders inside of it, aswell as .dat files.
Now the problem: A couple sites suggested that rmdir /S should delete all the files inside the directory. But for me, it only deletes the folders and not those .dat files.
Here's my coding:
rmdir "C:\Users\NAME\Desktop\1.8.9_Forge\world\" /S /Q
Can't find anything different than that, except really difficult coding, which I can't really comprehend.
It shouldn't be that hard to delete everything from a folder, right?
Maybe this could help a bit:
All I want to write, is a batch-file that stops my Minecraft server, deletes the current (destroyed) world, replaces it with an original copy and starts the server again.
Hope someone can help me