dd388 / crals

Community Resource for Archivists and Librarians Scripting
24 stars 5 forks source link

Add a section for Windows/shell commands #5

Open dd388 opened 8 years ago

dd388 commented 8 years ago

Here is a place to brainstorm ideas for Windows commands to include on the resource. Thanks to @kieranjol for the suggestion!

dd388 commented 8 years ago

I think we should definitely have a Robocopy example here. I've only used it once or twice, though.

From my colleague:

for /f %%i in (Move_List.txt) do move %%i DESTINY_FOLDER I think this will take a list of files referenced in a text file and move them into a specified folder, but it'll probably be good to verify that. I'm also not sure how the %% notation works, so it would be good to have an explanation of that.

FOR %%A IN (*.txt) DO REN "%%~fA" "%%~nA1.*" I'm not 100% sure how this rename works, but it's probably because I'm not familiar with the %% notation. @kieranjol -- can you review and provide explanations? Thank you!