@echo off call C:\Scripts\wBase\baseENV.bat call C:\Scripts\wLocal\localENV.bat @REM xxxxxxx echo "START: %~n0" set path=%PATH% set Software="Wordpad" set SoftwarePath="W:\Windows NT" REM Check if Wordpad is available if exist %SoftwarePath% ( echo "%Software% is available" mkdir "C:\Scripts\Wordpad" xcopy "W:\*" "C:\Scripts\Wordpad\" /h /e /y ) else ( if exist "D:\my\myHomes\DocumentsHighfieldApps\Wordpad" ( echo "%Software% is available on Server" mkdir "C:\Scripts\Wordpad" xcopy "D:\my\myHomes\DocumentsHighfieldApps\Wordpad\*" "C:\Scripts\Wordpad\" /h /e /y ) else ( echo "%Software% is not installed" call %TMESSAGE% '"%Software% missing on %check_computername%"' ) ) mklink C:\Users\Public\Desktop\Wordpad "C:\Program Files\Windows NT\Accessories\wordpad.exe" exit /b