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"