add gen sizeinfo bat

This commit is contained in:
Julian Freeman
2026-02-26 18:32:47 -04:00
parent 5ae8d48261
commit 85be19a06e
2 changed files with 28 additions and 3 deletions

25
gen_sizeinfo.bat Normal file
View File

@@ -0,0 +1,25 @@
@echo off
setlocal
if "%~1"=="" goto usage
if "%~2"=="" goto usage
set PATH=%~1
set FILE_NAME=%~2
if not exist "man_files" mkdir "man_files"
echo Running rclone lsf ...
rclone lsf -R --format "sp" --separator "|" --local-encoding "None" --exclude-from exclude-list.txt "%PATH%" > "man_files\%FILE_NAME%"
if %ERRORLEVEL% equ 0 (
echo Success: File saved to man_files\%FILE_NAME%
) else (
echo Error: rclone failed
)
goto :eof
:usage
echo Usage: %~nx0 ^<remote:path^|localpath^> ^<file^>
echo Example: %~nx0 [mydrive:backup^|C:/local/path] manifest.txt
exit /b 1