Created
August 4, 2016 02:17
-
-
Save handong1587/41874a87c1756d7ce0a5d0bec378f6ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set base_dir=d:\path\to\folder | |
set sub_dir[0]=sub_folder1 | |
set sub_dir[1]=sub_folder2 | |
set sub_dir[2]=sub_folder3 | |
for /F "tokens=2 delims==" %%s in ('set sub_dir[') do ( | |
for %%A in ("%base_dir%\%%s\*") do ( | |
p4 add "%%A" | |
) | |
) | |
p4 submit -d "add folder1,folder2,folder3." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment