add gen sizeinfo bat
This commit is contained in:
25
gen_sizeinfo.bat
Normal file
25
gen_sizeinfo.bat
Normal 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
|
||||
Reference in New Issue
Block a user