This article is from our Febooti archive, it was relevant then, and I think that it is still relevant today (a few details changed). Previous article: MS-DOS (cmd.exe) command prompt: CD, MD, copy. Next article: First cmd / DOS batch script example. Batch scripts is still relevant in 2014. Batch programming is repeatedly used in …
Tag Archives: .bat
Underused features of Windows batch files
StackOverflow have another interesting topic about: Underused features of Windows batch files. Of course there are many things I didn’t know about. Some highlights: PUSHD path Takes you to the directory specified by path. POPD Takes you back to the directory you “pushed” from. By using CALL, EXIT /B, SETLOCAL & ENDLOCAL you can implement …
Continue reading “Underused features of Windows batch files”
How to delete all folders in current directory
How to delete all folders in current directory using command line (cmd.exe) or batch files? How to delete all empty directories in current folder: FOR /D %f IN (*.*) DO RD “%f” How to delete all directories / folders in current directory / folder: FOR /D %f IN (*.*) DO RD “%f” /S /Q If …
Continue reading “How to delete all folders in current directory”