Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
einstein1969
- Expert
- Posts: 961
- Joined: 15 Jun 2012 13:16
- Location: Italy, Rome
#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
-
einstein1969
- Expert
- Posts: 961
- Joined: 15 Jun 2012 13:16
- Location: Italy, Rome
#3
Post
by einstein1969 » 11 Sep 2015 13:18
thanks aGerman.
event the PROMPT is resetted.
einstein1969