G
Guest
Guest
Archived from groups: microsoft.public.win2000.general (More info?)
Hi,
I recently encountered a question on batch command, please see following
batch code.
the script result which I expect is that the 1st and 2nd echo output would
be same. however, it doesnot. very strange...
Thanks in advance for your any concern.
@rem a script to guess the right app path
@echo off
set editor=''
for %%k in ("c:\winnt\notepad.exe" "c:\win2k\notepad.exe" ) do (
if exist %%k (
set editor=%%k
echo 1. %editor%
goto editorOk
)
)
:editorOk
echo 2. %editor%
-chenzero
Hi,
I recently encountered a question on batch command, please see following
batch code.
the script result which I expect is that the 1st and 2nd echo output would
be same. however, it doesnot. very strange...
Thanks in advance for your any concern.
@rem a script to guess the right app path
@echo off
set editor=''
for %%k in ("c:\winnt\notepad.exe" "c:\win2k\notepad.exe" ) do (
if exist %%k (
set editor=%%k
echo 1. %editor%
goto editorOk
)
)
:editorOk
echo 2. %editor%
-chenzero