Affect the result of a command in a variable
Posted: 07 Apr 2008 08:26
Hi All,
I am a really big noob in batch : I was wondering how to put the result of a command in a variable
for example :
DIR /A-D /B %PACKERINPUTPATH%
returns me a file list that I would like to put in a variable name MYFILES
I know how to do it in X shell :
MYFILES=`ls $PACKERINPUTPATH`
But just can't find the equivalent in Batch script
Help me please and sorry for the noob question
Gabriel
I am a really big noob in batch : I was wondering how to put the result of a command in a variable
for example :
DIR /A-D /B %PACKERINPUTPATH%
returns me a file list that I would like to put in a variable name MYFILES
I know how to do it in X shell :
MYFILES=`ls $PACKERINPUTPATH`
But just can't find the equivalent in Batch script
Help me please and sorry for the noob question
Gabriel