You can start PRO like this and that will restore the environment variable
when PRO closes:
Set WshShell = Wscript.CreateObject("Wscript.Shell")
Set WshSysEnv = WshShell.Environment("SYSTEM")
WshSysEnv.item("ADSKFLEX_LICENSE_FILE") = "@SERVER1"
WshShell.Run """C:\Program Files\Autodesk\Inventor
11\Bin\Inventor.exe""",1,true
WshSysEnv.item("ADSKFLEX_LICENSE_FILE") = "@SERVER2"
But in case something got wrong it might be a good idea to have a file
available that the users can run to only restore the environment variable.
--
Jimmy Bergmark
JTB World - Software development and consulting
Owner/Developer
http://www.jtbworld.com
http://jtbworld.blogspot.com
JTB World offers you software's, custom software development, consulting...
http://www.jtbworld.com/about.htm
JTB FlexReport (FLEXnet / FLEXlm license report tool) -
www.jtbworld.com/jtbflexreport
AutoCAD 2008
http://www.jtbworld.com/autocad2008.htm
"hallstevenson" wrote in message news:5707151@discussion.autodesk.com...
That appears to be a nice option to consider. Can I ask how to "undo" the
environment variable setting too ?? Or, as you say, I just have (2) of these
files, one that points to my server (for PRO) and another that points to
their normal (for Standard/Series) server ??