Hi,
I need to do a .bat for DOS that do the following:
set ROOT = c:\programas\
set SRC_ROOT = (I want to put the ROOT Here)System\Source
so after defining ROOT I want to have SCR_ROOT = c:\programas\System\Source
How can I do that? thanks
Hi,
I need to do a .bat for DOS that do the following:
set ROOT = c:\programas\
set SRC_ROOT = (I want to put the ROOT Here)System\Source
so after defining ROOT I want to have SCR_ROOT = c:\programas\System\Source
How can I do that? thanks
Hi try this :
set ROOT = c:\programs
set SRC_ROOT = %ROOT%\System\Source
By the way, what is the meaning of the | after the ROOT ? A mispelling ?
Gregoire
EDIT : without spaces
set ROOT=c:\programs
set SRC_ROOT=%ROOT%\System\Source
Hi
Note that if spaces are needed then quotation marks are needed at definition and must be chopped while concatenating:
rem The retail files set
set FILES_SET="(*.exe *.dll"
rem The debug extras files set
set DEBUG_EXTRA=" *.pdb"
rem Build the DEBUG set without any
set FILES_SET=%FILES_SET:~1,-1%%DEBUG_EXTRA:~1,-1%
rem Append the cloasing bracket
set FILES_SET=%FILES_SET%)
echo %FILES_SET%
Cheers...