29 lines
1.2 KiB
Batchfile
29 lines
1.2 KiB
Batchfile
@ECHO OFF
|
|
REM ----------------------------------------------------------------------------
|
|
REM Copyright (c) 2024 by Digital Data GmbH
|
|
REM
|
|
REM Digital Data GmbH • Ludwig-Rinn-Strasse 16 • D-35452 Heuchelheim
|
|
REM Tel.: 0641/202360 • E-Mail: info-flow@digitaldata.works
|
|
REM ----------------------------------------------------------------------------
|
|
REM Creation Date / Author: 06.01.2024 / MK
|
|
REM Version Date / Editor: 27.02.2024 / MK
|
|
REM Version Number: 1.1.0.0
|
|
|
|
pushd "%~dp0"
|
|
|
|
SET DFSRSERVER=172.24.11.1
|
|
SET DFSRROOTPATH=\\dd-gan.local.digitaldata.works\dd-dfsr01
|
|
SET DFSRSERVERPATH=\\DD-STO01\DD-STO01-A2$
|
|
|
|
ping -n 1 %DFSRSERVER% >nul
|
|
IF %errorlevel% equ 0 (
|
|
ECHO Der Server %DFSRSERVER%, ist erreichbar!
|
|
dfsutil.exe client property state active %DFSRROOTPATH%\ArchivedObjects %DFSRSERVERPATH%\ArchivedObjects
|
|
dfsutil.exe client property state active %DFSRROOTPATH%\ServerObjects %DFSRSERVERPATH%\ServerObjects
|
|
dfsutil.exe client property state active %DFSRROOTPATH%\SharedObjects %DFSRSERVERPATH%\SharedObjects
|
|
dfsutil.exe client property state active %DFSRROOTPATH%\UserObjects %DFSRSERVERPATH%\UserObjects
|
|
) else (
|
|
ECHO Der Server %DFSRSERVER%, ist nicht erreichbar!
|
|
)
|
|
timeout /t 10
|
|
exit |