Adventures in IT
29 November 2012
Adding a prefix to all files in a directory using DOS
A quick way to prefix all files in the directory is to run this command from your shell in the directory where your files are:
for %a in (*) do ren "%~a" "prefix_%~a"
The part of the command "prefix_" can be replaced with whatever prefix you want to swap with.
Post a Comment
Post Comments (Atom)