I'm trying to automate download process using s3browser CLI within my batch file. I want to use s3browser-cli /file download one by one in one master batch file. Link to the doc from S3browser
S3browser download command works but after download is finished it just hangs and can't continue to the next line of my batch file. I tried running only one download in the background and after it completes it should close the main window:
cd "C:\Program Files\S3 Browser"
s3browser-cli.exe /file download Account[secret_key] "Source\file1.txt" "Destination\Filip"
exit 0
#tried with "call s3browser-cli.exe" and "start /b /wait" as well with the same effect
but it displaying "Successfully downloaded" at the end and it hangs/pause unless I use Ctrl+C and type "N" so it skips and continue to the next line which is my "exit". File is downloaded, but I can't run multi "/file download" one after another unless I manually terminate each one. What am I doing wrong? Can this issue be from s3browser side? I'm new to S3 and batch. Hope I can get someone to help me.
PS I've tried running each commands in the same window, one batch file but separate windows, using call, start with and without /wait but every time the download is successful and it hangs/pause till i manually force it to quite which stops me from downloading multiply files one by one from different folders without my intervention.
Here's the full batch file I'm working on: (each file is around 50-80GB)
@echo off
type welcome-message.txt
if not defined relVer goto :labelNoVer
goto :commonexit
:labelNoVer
set /p relVer=Please input the version you want to download:
cd "C:\Program Files\S3 Browser"
s3browser-cli.exe /file download Account[secret_key] "Source/%relVer%/file1.txt" "Destination\Filip"
echo ----------------Copy-END for File 1---------------------
s3browser-cli.exe /file download Account[secret_key] "Source/%relVer%/file2.txt" "Destination\Filip"
echo ----------------Copy-END for File 2---------------------
s3browser-cli.exe /file download Account[secret_key] "Source/%relVer%/file3.txt" "Destination\Filip"
echo ----------------Copy-END for Everything---------------------
pause
exit
:commonexit
echo Terminating Copy!
pause
exit