- Ensure-PCDMISFrontEnd.ps1/.bat: standalone fix for already-imaged bays - create C:\GE PC-DMIS FRONT END + grant Users/Auth Users Modify. PCDToIGES.exe writes its error log there in its catch block; on a fresh bay the dir is absent (legacy front-end setup isn't part of imaging), so ANY PCDToIGES error becomes an unhandled DirectoryNotFoundException that crashes the export and masks the real cause (confirmed live on a CMM bay). - 09-Setup-CMM Step 2.5b: create that dir + ACL at imaging for every CMM bay. - 09-Setup-CMM Step 2.5: Register-PCDMIS-COM.bat now lands on the Public desktop (visible to operator or SupportUser) instead of SupportUser-only. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
22 lines
657 B
Batchfile
22 lines
657 B
Batchfile
@echo off
|
|
REM Ensure-PCDMISFrontEnd.bat - launcher for Ensure-PCDMISFrontEnd.ps1
|
|
REM
|
|
REM Creates C:\GE PC-DMIS FRONT END + grants the operator write access, so
|
|
REM PCDToIGES.exe can write its error log there instead of crashing with
|
|
REM "Could not find a part of the path 'C:\GE PC-DMIS FRONT END\PCDToIGES.ERR'".
|
|
REM
|
|
REM Needs admin - self-elevates.
|
|
|
|
net session >nul 2>&1
|
|
if %errorlevel% neq 0 (
|
|
echo Requesting administrator rights...
|
|
powershell -NoProfile -Command "Start-Process -FilePath '%~f0' -Verb RunAs"
|
|
exit /b
|
|
)
|
|
|
|
set "HERE=%~dp0"
|
|
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%HERE%Ensure-PCDMISFrontEnd.ps1"
|
|
|
|
echo.
|
|
pause
|