Adding to a Path in DOS?

  • Thread starter Thread starter Tmuldoon
  • Start date Start date
T

Tmuldoon

Guest
Hello,

I have an existing path:

c:\>PATH=C:\Program Files\HP\NCU;C:\Program Files\Support Tools\;

I want to add

F:\bea\jdk141_05\bin>

to it.

If I just say Path=F:\bea\jdk141_05\bin;

it will overwrite all the other path info.

How do I get it just to add to the end, and only for this session.
After the reboot, i do not need it again.

Thanks,

Tmuld.
 
Re: Adding to a Path in DOS?

why not: set path=C:\Program Files\HP\NCU;C:\Program Files\Support
Tools\;F:\bea\jdk141_05\bin;



"Tmuldoon" <tmuldoon@spliced.com> wrote in message
news:ee9eeefc-deb1-453f-94fa-fdd25d544bc2@l17g2000pri.googlegroups.com...
> Hello,
>
> I have an existing path:
>
> c:\>PATH=C:\Program Files\HP\NCU;C:\Program Files\Support Tools\;
>
> I want to add
>
> F:\bea\jdk141_05\bin>
>
> to it.
>
> If I just say Path=F:\bea\jdk141_05\bin;
>
> it will overwrite all the other path info.
>
> How do I get it just to add to the end, and only for this session.
> After the reboot, i do not need it again.
>
> Thanks,
>
> Tmuld.
 
Re: Adding to a Path in DOS?


"Tmuldoon" <tmuldoon@spliced.com> wrote in message
news:ee9eeefc-deb1-453f-94fa-fdd25d544bc2@l17g2000pri.googlegroups.com...
> Hello,
>
> I have an existing path:
>
> c:\>PATH=C:\Program Files\HP\NCU;C:\Program Files\Support Tools\;
>
> I want to add
>
> F:\bea\jdk141_05\bin>
>
> to it.
>
> If I just say Path=F:\bea\jdk141_05\bin;
>
> it will overwrite all the other path info.
>
> How do I get it just to add to the end, and only for this session.
> After the reboot, i do not need it again.
>
> Thanks,
>
> Tmuld.


If you happen to be in the F:\bea\jdk141_05\bin folder then
you can type this with very little effort and one hundred procent
accuracy:
set path=%path%;%cd%
 
Back
Top