citrix_del_file.bat

echo off
SETLOCAL enableExtensions enableDelayedExpansion
set w_file=%1 %2 %3 %4
rem set cpt=0
echo Search File : \\PCTXxx%w_file%
echo *******************************************
for /f %%i in (\\PFILE\Batch_win\Citrix_List_servers.txt) do (
set w_target="\\%%i!w_file!"
IF EXIST !w_target! (
 echo The file : !w_target! will be DELETED.
 del /S /F /Q !w_target!
rem del /S /F /Q !w_target! 2>&1
rem IF !ERRORLEVEL!==0 set /A cpt+=1 
 ) ELSE (
 echo The file : !w_target! does not exist.
 )
echo ---------------------
)
rem exit /B %cpt%
Citrix_List_servers.txt

PCTX0
PCTX1
PCTX2
PCTX3
PCTX4
PCTX6
PCTX7
PCTX8
PCTX9
PCTX11
PCTX12
PCTX13
PCTX14
PCTX15
PCTX16

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *