Skip to content

Instantly share code, notes, and snippets.

@andy722
Created July 9, 2012 09:52
Show Gist options
  • Save andy722/3075485 to your computer and use it in GitHub Desktop.
Save andy722/3075485 to your computer and use it in GitHub Desktop.
Windows batch: iterate over a static array - copies specified files
@echo off
set SRC=C:\some-path
set TARGET=\\REMOTE-HOST\other-path
set FILE_LIST=(file1.py file2.py file3.py file4.py)
for %%i in %FILE_LIST% do copy /Y %SRC%\%%i %TARGET%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment