Exe won't run from PSADT

Hi,

I wonder why this PSADT entry gives this error:

Execute-Process -path "$dirFiles\nx-12.0.2.mp01\run_ugsupdate.exe" 

image

As you can see it starts a batch file but if I start run_ugsupdate.exe from a admin commandprompt it will run without any problem.

regards,

Strange. Depends on what the exe does.

My first guess is that “run_usgupdate.exe” is extracting files to “C:\Test…”. When you manually run it from cmd prompt, do you see the batch file extracted to this location? Are the switches in your error message correct? The “…and 1” looks a little odd. Are there perhaps tweaks to this command line you need to feed the .exe? Or other switches you need to add?

This is what I see when I start run_ugsupdate.exe from a admin commandprompt:

Installing 12.0.2.9 Maintenance Release 1 02Aug18 files
in: "C:\Program Files\Siemens\NX 12.0"

Copying files. Please wait . . .

Updating files in "C:\Program Files\Siemens\NX 12.0\LOCALIZATION" . . .

Updated LOCALIZATION

Updating files in "C:\Program Files\Siemens\NX 12.0\NXPLOT" . . .

Updated NXPLOT

Updating files in "C:\Program Files\Siemens\NX 12.0\PVTRANS" . . .

  Moving files in PVTRANS\nxbin to C:\Program Files\Siemens\NX 12.0\nxbin

Updated PVTRANS

Updating files in "C:\Program Files\Siemens\NX 12.0\UGII" . . .

 Moving files in UGII\nxbin to C:\Program Files\Siemens\NX 12.0\nxbin

Updated UGII

Updating files in "C:\Program Files\Siemens\NX 12.0\UGMANAGER" . . .

Moving files in UGMANAGER\nxbin to C:\Program Files\Siemens\NX 12.0\nxbin

Updated UGMANAGER

DONE. ugs_update has completed successfully !