Re: set PATH=%PATH%...

new topic     » goto parent     » topic index » view thread      » older message » newer message

Ron Weidner wrote:
> 
> 
> > Can you try 'system()' instead of 'system_exec()' ?
> > 
> 
> Thanks for your quick response. 
> 
> I just gave that a try.  That didn't work either. 
> Should it have?  Has anyone been successful at setting
> the PATH var at run time?
> 
> 
> --
> Ronald Weidner
> <a href="http://www.techport80.com">http://www.techport80.com</a>
> PHP Software developer for hire.
> 
> 
> 	
> 		
> 
> 

Hi again Ron,

I mentioned 'system()' instead of 'system_exec()' because the latter
does not run built in dos commands, only executable files like "my.exe" .
system() is made for also running built in dos commands, but i have
a feeling when it returns the path goes back to whatever it was
before the call.

You can try using a .bat file if you like.  You'll have to write
the commands to a .bat file and then run the bat file.  I guess
all of the commands would have to be in with the bat file or else
when that returns the path goes back to what it was before the call
too.
If that doesnt work, perhaps you can try writing to the registry
under the path variables (there might be more than one).
Sorry i cant be more specific...it's been a while since i used these
things.

Perhaps Rob would be willing to add a 'set_environment_var' function
call to the next release?


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu