Files
wLocal/SystemChecks/l_FixWordPad.bat
USER e0fc96f9c8 .
2025-09-02 20:39:27 +01:00

31 lines
688 B
Batchfile

@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="C:\Program Files\LibreOffice\program\soffice.exe"
REM Check if Wordpad is available
if exist %SoftwarePath% (
echo "%Software% is available"
xcopy "W:\WordPad\Windows NT\Accessories" "C:\Program Files\Windows NT\Accessories" /h /e
xcopy "W:\WordPad" "S:\Scripts" /h /e
assoc .rtf=rtffile
ftype rtffile="C:\Scripts\Wordpad\Windows NT\Accessories\WORDPAD.EXE" "%%1"
) else (
echo "%Software% is not installed"
call %TMESSAGE% '"%Software% missing on %check_computername%"'
)
exit /b