@ECHO OFF REM =========================================================================== REM Set common variables REM project_list will be whatever directories you wish to copy from the s3 projects directory to local REM =========================================================================== SET aws_s3_bucket=drh-video1 SET drive_location="C:\Users\david\Pictures\Adventures In Cloud Computing" SET project_list=dir_name_1 dir_name_2 REM remove quotes SET drive_location=%drive_location:"=% REM =========================================================================== REM Set varialbes used in script REM =========================================================================== REM SET local_project_location=%drive_location%\projects SET local_project_location=%drive_location% SET s3_project_location=s3://%aws_s3_bucket%/projects echo Local project location: %local_project_location% echo S3 project location: %s3_project_location% REM =========================================================================== REM Push projects up REM =========================================================================== FOR %%i in (%project_list%) do ( echo Project: %%i aws s3 sync "%local_project_location%/%%i" %s3_project_location%/%%i ) pause