From 2a399de5825d26e8eb4dcc8502bf228b8186f199 Mon Sep 17 00:00:00 2001 From: zgqq Date: Mon, 26 May 2025 10:10:21 +0000 Subject: [PATCH] Update vm_smb_sync.bat --- vm_smb_sync.bat | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vm_smb_sync.bat b/vm_smb_sync.bat index cf91378..65b2cb1 100644 --- a/vm_smb_sync.bat +++ b/vm_smb_sync.bat @@ -36,7 +36,9 @@ REM -- Main Loop: Iterate through mappings by index -- for /L %%i in (1,1,%MAPPINGS_COUNT%) do ( call :map_share "%%SHARE_%%i%%" "%%DRIVE_%%i%%" "%%USER_%%i%%" "%%PASS_%%i%%" ) -goto :eof + +REM Continue to file copying section +goto :copy_files :map_share REM Parameters: %~1 = share, %~2 = drive, %~3 = user, %~4 = pass @@ -60,7 +62,7 @@ if errorlevel 1 ( goto :eof - +:copy_files echo Copying files from Z:\git-repo\oh-my-windows\win11common... xcopy /Y /E /I "Z:\git-repo\oh-my-windows\win11common\*" "%~dp0"