Using the && ^ operators we can batch different commands to be executed in windows command prompt.
// example file – test.bat
mkdir newdir && ^ rd /s /q somefolder/otherfolder && ^ rd /s /q difffolder/otherfolder
Using only a single & symbol will make the following command execute even if the current one fails.
Also this is a good example of how to delete folders in a quick efficient way.