Posted by Erwin Moller on 04/26/06 15:45
tony@tony.com wrote:
>
> I've tried:
>
> system("set PATH="%PATH%;e:\;c:\");
> But that doesnt seem to work.
> I thought maybe $_ENV['path='%PATH%;e:\;c:\'];
> But no luck.
>
> Can anyone tell me how please?
>
> thanks
>
> tony
Hi tony,
Win 98? Wow. :-)
Did you try to use putenv() ??
http://nl3.php.net/manual/en/function.putenv.php
Alernatively: Didn't win98 had a file called autoexec.bat that contained the
PATH? Or was that DOS only? Not sure.
Try to open it (need right rights of course) and add your piece of the path.
I suggest you test putenv() first.
Good luck,
Erwin Moller
[Back to original message]
|