Logon script to dynamically set System Variable based on file path?

Firstly, apologies if this is the wrong sub, but you guys seem the most qualified :).

We have a tool called PDM Pro which ties into the Windows shell to preview certain SolidWorks parts, assys, and drawings. In the tool itself, you have to point to the location of the preview application on the local machine. Unfortunately, the path on each machine can differ from one location to the other (dependant if it was a fresh install or an upgrade).

Now the question – can I build a script that queries several known paths for a file, and once the file is found it then creates/updates a Windows System Variable based on that correct path? This script will be applied as a logon script via GPO filtered by Security Group.

Thanks in advance :).

submitted by /u/BloomerzUK
[link] [comments]

Leave a Reply