I have our Pro/E startup batch files checking if a session of Pro/E is already running. If so then it will notify the user and it will not start a second one. This has worked great.I modifed the batch file in the bin directory. However, I just ran into a case where a user double-clicked a model in an Explorer window and it started up a second session.
Since I can't change the proe.exe file in the bin directory do you know how I could prevent this from happening, aside from going to every computer and edit the file association? Or is there a way to change that association in our startup batch file?Steve G
You can prevent users from running more than one session of Pro/E through the license service as well. Set up an options file for the FlexNetlicenseservice for yourPTC software and edit the license file to point to the options file. In the options fileyou can utilize the MAX option to specify a maximum of one concurrent license of Pro/E for each user. The upside of this is you get tight central control and can allow certain users multiple licenses while limiting most users to one license. The downside is, at least this is what I found, you have to have a "MAX" line in the option file for each user name. The options file does permit creating groups of users to allow easier application of controls, but using MAX and groups together sets that whole group of users collectively to a limit of 1 license - not what you want (at least that's what I reacall from several years ago - if anyone found differently please correct me because that would change things). If you have a small to mediumnumber of users it's easy to manage this way, but if you have hundreds of users, frequent contract workers or a user list constantly in a state of flux, this approach can get too complicated to realistically manage.
I just wanted to show what I ended up doing with this.
The command <u>assoc .prt=</u> was not the only command I needed. I also needed <u>assoc .1=</u>
If you look at the File Types tab from the Folder Options in an explorer window there are also associations for 1 - 250 to use Pro/E to open. And since Pro/E increments their CAD files with integers, I had to remove those association in addition to .prt, .asm, and .drw.
Ina text file pro_file_assoc.txt I added one integer digit extensionper line. I.e.:
etc up to .40 along with .prt, .asm, and .drw.
This text file is on the network.
In our startup script Ifirstadded code torecordeach usersfile association to a text file.That is just incase a particular computer had a different program associated to one or more of the file extensions:
if not exist %PRO_LOG%\%username%_%computername%_file_assoc.txt (
for /F "skip=1" %%a in (%PRO_NCONFIG%\pro_file_assoc.txt) do (
assoc %%a >> %PRO_LOG%\%username%_%computername%_file_assoc.txt)
Then I added the line to remove the association:
for /F "skip=1" %%a in (%PRO_NCONFIG%\pro_file_assoc.txt) do (assoc %%a=)
I can always add more extension digits later to the text file if I need to.