From bfba3e4ec5d1e1cce5206a9a97454eca1bf0a477 Mon Sep 17 00:00:00 2001 From: USER Date: Tue, 2 Sep 2025 20:35:31 +0100 Subject: [PATCH] . --- bin/fix_wordpad1.bat | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/bin/fix_wordpad1.bat b/bin/fix_wordpad1.bat index 30cedcd..b49eee6 100644 --- a/bin/fix_wordpad1.bat +++ b/bin/fix_wordpad1.bat @@ -1,9 +1,30 @@ @echo off call C:\Scripts\wBase\baseENV.bat call C:\Scripts\wLocal\localENV.bat +@REM xxxxxxx +echo "START: %~n0" -xcopy "S:\WordPad\Windows NT\Accessories" "C:\Program Files\Windows NT\Accessories" /h /e +set path=%PATH% + +set Software="Wordpad" +set SoftwarePath="C:\Program Files\LibreOffice\program\soffice.exe" -xcopy "C:\Scripts\WordPad\Windows NT\Accessories" "C:\Program Files\Windows NT\Accessories" /h /e +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