--- In [email protected], [EMAIL PROTECTED] wrote:

Or, you can set env vars by writing to the registry:

chnage <varname> to your env var below:

User env:

reg.set_string(?"HKCU\Environment\<varname>", "new_value")

System env:

(watch line wrap)

reg.set_string(?"HKLM\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment\<varname>", "new_value")


I find best to do: 

   Exec.RefreshEnvironment

after, as PP may not pick up env changes unless you do.

Have tried on NT4 and W2K, not W9x.


> > Control Panel, System, Advanced, Environment Variables,
> > System Variables, New ...
> > 
> > Surprisingly, it is not even necessary to restart PowerPro.
> > If you use that gui method to add a new envvar,
> > such as pp for c:\pathto\powerpro
> > it works immediately both inside and outside of PowerPro.

(...snip....)

> Yes, that is certainly the most reliable method of setting environment
> variables (that method doesn't work with Windows 9x though), and is
> definitely the recommended method for setting permanent variables in
windows
> NT+...
> 
> But for our USB drive scenario who wants to go thru all those GUI
windows to
> set a variable permanently on a system when powerpro is being
launched from
> a temporarily plugged-in USB drive :)
> 
> David Troesch  |  Atlanta, GA  |  ICQ# 2333123
> If you don't take action, someone else will. http://action.eff.org
> Funstuff: Lawyer Parking Only. All others will be sued.




Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to