--- I wrote: > You should find that a new instance of the Command Prompt opened > after changing the PP environment variable will reflect the changes.
--- Alan wrote: > I had tried that; closed all cmd windows, changed %pp% using > exec.setenv(), opened a new cmd window and ran "Set". It still shows > the old value for "pp". How very odd. PowerPro is definitely setting environment variables at the system level, since otherwise the Command Prompt would not be able to see them at all. If you don't mind my asking, does this script below exhibit the same odd behaviour? Exec.SetEnv(?"PProTestVar", ?"Test 1") ; --- line separator MessageBox(?"Asterisk", ?'Set %EnvVar% PProTestVar to: "' ++ Env(?"PProTestVar") ++ ?'"') ; --- line separator File.RunWait(0, Env(?"ComSpec"), ?"/C Set PProTestVar> C:\PProTestVar.txt") ; --- line separator MessageBox(?"Asterisk", ?'%ComSpec% reports:' ++ Esc(?"\n", ?"\") ++ Line(File.ReadAll(?"C:\PProTestVar.txt"), 1)) ; --- line separator Exec.SetEnv(?"PProTestVar", ?"Test 2") ; --- line separator MessageBox(?"Asterisk", ?'Set %EnvVar% PProTestVar to: "' ++ Env(?"PProTestVar") ++ ?'"') ; --- line separator File.RunWait(0, Env(?"ComSpec"), ?"/C Set PProTestVar> C:\PProTestVar.txt") ; --- line separator MessageBox(?"Asterisk", ?'%ComSpec% reports:' ++ Esc(?"\n", ?"\") ++ Line(File.ReadAll(?"C:\PProTestVar.txt"), 1)) ; --- line separator File.DeleteNoRecycle(?"C:\PProTestVar.txt") ; --- line separator -- Alex Peters / Melbourne, Australia PowerPro v4.1.00 / Windows XP ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/JV_rlB/TM --------------------------------------------------------------------~-> 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/
