Re: Add string to the System Variable "PATH" by Pegasus
Pegasus
Wed Jul 25 11:08:49 CDT 2007
"Yman" <Yman@discussions.microsoft.com> wrote in message
news:6156FF38-2501-4770-A4D7-E1CB276358E4@microsoft.com...
> Hi,
>
> I'm looking for a script to add string at the begining of the System
> Variable "PATH" Statement to deploy remotely VIA SMS. I've tried using
> SETX,
> I didn't have much luck I can't modify the PATH I can instert any varible
> I
> want but I can't edit the "PATH".
>
> Thanks
>
>
Setx.exe will modify the ***system*** but not the current
path. The change will affect all ***new*** processes but it
has no effect on pre-existing processes. To edit the path for the
current and for all new processes you need two commands:
set path=%path%;MyFolder
setx path %path%;MyFolder -m