PATHEXT variable

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
einstein1969
Expert
Posts: 961
Joined: 15 Jun 2012 13:16
Location: Italy, Rome

PATHEXT variable

#1 Post by einstein1969 » 11 Sep 2015 09:29

Hi to all,

I noticed this behavior of the variable pathext:

if undefined and open a child cmd, the variable is redefined/resetted

Code: Select all

@echo off

set PATHEXT=

c:\windows\system32\cmd.exe /D /C"set path"

echo(
set path

pause
exit


someone can confirm this behavior?

Einstein1969

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: PATHEXT variable

#2 Post by aGerman » 11 Sep 2015 10:36

Have a look at that old thread:
viewtopic.php?p=11481#p11481

Regards
aGerman

einstein1969
Expert
Posts: 961
Joined: 15 Jun 2012 13:16
Location: Italy, Rome

Re: PATHEXT variable

#3 Post by einstein1969 » 11 Sep 2015 13:18

thanks aGerman.

event the PROMPT is resetted.

einstein1969

Post Reply