Can I store the output of a command in a variable in batch scripting? -



Can I store the output of a command in a variable in batch scripting? -

i want dir folder , in variable names of *.csv files.

does know how can this?

using bash can try:

dirlist=`ls -1 *.csv` echo "$dirlist"

under windows can read next q , a:

windows batch files: how set variable result of command?

something like:

for /f "delims=" %%a in ('dir') @set foobar=%%a

change 'dir' want. have no windows machine close by, cannot test.

batch-file

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

ms access - C# - Using OleDbParameter on table name -