|
|
@ -43,14 +43,13 @@ goto :EOF |
|
|
|
net use %DRIVE%: %REPO_SMB% /PERSISTENT:NO /USER:%USER% %PASS% 1>NUL 2>NUL |
|
|
|
net use %DRIVE%: %REPO_SMB% /PERSISTENT:NO /USER:%USER% %PASS% 1>NUL 2>NUL |
|
|
|
REM Check if mapping worked |
|
|
|
REM Check if mapping worked |
|
|
|
IF %ERRORLEVEL% NEQ 0 ( |
|
|
|
IF %ERRORLEVEL% NEQ 0 ( |
|
|
|
echo %DATE% %TIME% - Error mapping %REPO_SMB%, lets try webdav >> %SystemDrive%\FWSUpdates\status\sync_log.txt |
|
|
|
echo %DATE% %TIME% - Error mapping %REPO_SMB% (using CIFS^), lets try webdav >> %SystemDrive%\FWSUpdates\status\sync_log.txt |
|
|
|
goto cleanup |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
net use %DRIVE%: %REPO_WEB% /PERSISTENT:NO /USER:%USER% %PASS% 1>NUL 2>NUL |
|
|
|
net use %DRIVE%: %REPO_WEB% /PERSISTENT:NO /USER:%USER% %PASS% 1>NUL 2>NUL |
|
|
|
IF %ERRORLEVEL% NEQ 0 ( |
|
|
|
IF !ERRORLEVEL! NEQ 0 ( |
|
|
|
echo %DATE% %TIME% - Error mapping %REPO_WEB% >> %SystemDrive%\FWSUpdates\status\sync_log.txt |
|
|
|
echo %DATE% %TIME% - Error mapping %REPO_WEB% (using WEBDAV^), giving up >> %SystemDrive%\FWSUpdates\status\sync_log.txt |
|
|
|
goto cleanup |
|
|
|
goto cleanup |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
) |
|
|
|
REM and if wpkg.js exists |
|
|
|
REM and if wpkg.js exists |
|
|
|
IF NOT EXIST "%DRIVE%:\wpkg.js" ( |
|
|
|
IF NOT EXIST "%DRIVE%:\wpkg.js" ( |
|
|
|
echo %DATE% %TIME% - %DRIVE%:\wpkg.js not found >> %SystemDrive%\FWSUpdates\status\sync_log.txt |
|
|
|
echo %DATE% %TIME% - %DRIVE%:\wpkg.js not found >> %SystemDrive%\FWSUpdates\status\sync_log.txt |
|
|
|