The ug_inspect utility (found in the UGII subfolder) can be run to check the validity of any NX prt file and to extract several pieces of information (e.g. the version) from them.
However there is no option to execute it on several files unless you enter each .prt filenames, in other words a syntax like this one:
ug_inspect C:\temp\*.prt
to check all prt file within the C:\temp folder is not supported.
Solution
Users can achieve that goal by creating a batch script file.
There are several possibilities and the Internet is always a good source of information on how to create such a script.
A simple approach that is valid to check all .prt files within a root folder and recursively in its subfolders is this one.
@echo off
cd "\program files\siemens\NX 12.0\UGII\"
for /f "usebackq delims=|" %%a in (`dir C:\temp\*.prt /s/b`) do (
echo %%a
ug_inspect.exe -release "%%a" >> C:\temp\report.txt
)
If you launch such a script first of all a DOS shell will show up, listing all .prt files that will be found in the main folder (C:\temp in the sample above) and its subfolders (after completing the list the windows will immediately close).
Eventually a text file (C:\temp\report.txt in the sample above) will be created with all the messages generated by the ug_inspect (with the -version option) utility.
..Running NX 12 version of ug_inspect on c:\temp\assembly1.prt
Note: partition 1 contains pseudo entries
-------- Part Release Information ------------
Part name: c:\temp\assembly1.prt
Release: NX 11...Running NX 12 version of ug_inspect on c:\temp\cuboz.prt
Note: partition 1 contains pseudo entries
-------- Part Release Information ------------
Part name: c:\temp\cuboz.prt
Release: NX 11...Running NX 12 version of ug_inspect on c:\temp\cuboz53.prt
Note: partition 1 contains pseudo entries
-------- Part Release Information ------------
Part name: c:\temp\cuboz53.prt
Release: NX 11...
...
...
...Running NX 12 version of ug_inspect on c:\temp\9646033\NX11_dwg.prt
Note: partition 1 contains pseudo entries
-------- Part Release Information ------------
Part name: c:\temp\9646033\NX11_dwg.prt
Release: NX 11...Running NX 12 version of ug_inspect on c:\temp\9646033\NX12.prt
-------- Part Release Information ------------
Part name: c:\temp\9646033\NX12.prt
Release: NX 12...Running NX 12 version of ug_inspect on c:\temp\9646033\NX12_dwg.prt
Note: partition 1 contains pseudo entries
-------- Part Release Information ------------
Part name: c:\temp\9646033\NX12_dwg.prt
Release: NX 12Hardware/Software Configuration
Platform: INTL64
OS: windows
OS Version: n/a
Product: NX
Application: SYSTEM
Function: WNT_OS_ISSUES
Ref: 002-8016527