TwitchDownloader/bin/upload.bat

8 lines
312 B
Batchfile
Raw Normal View History

2022-12-03 08:57:56 -05:00
@echo off
set root_path=%1
set user=%2
2022-12-06 10:52:44 -05:00
if "%root_path:~-1%" == "\" set "root_path_1=%root_path:~0,-1%"
for %%f in ("%root_path_1%") do set "root_path_name=%%~nxf"
2022-12-03 08:57:56 -05:00
FOR /F "eol=# tokens=*" %%i in (%~dp0\..\.env) do SET %%i
CD %~dp0
2022-12-06 10:52:44 -05:00
rclone.exe copy ../%root_path%/%user% %remote%/%root_path_name%/%user% --progress