DOS dir /B: want to store evaluated output
Posted: 09 Apr 2008 20:07
Hi,
I've got to write a batch file at work which renames a file (slx_callhistory*.txt) to slx_callhistory.txt, calls an external app, then renames slx_callhistory back to what it was originally
the problem i'm having is, i'm doing a
dir slx_callhistory*.txt /B, and trying to set this output in a variable,
but I don't want the variable to contain the dir call, i want it to contain the output
is there any way of doing this, or can somebody suggest a better way to go about the problem?
Thanks
I've got to write a batch file at work which renames a file (slx_callhistory*.txt) to slx_callhistory.txt, calls an external app, then renames slx_callhistory back to what it was originally
the problem i'm having is, i'm doing a
dir slx_callhistory*.txt /B, and trying to set this output in a variable,
but I don't want the variable to contain the dir call, i want it to contain the output
is there any way of doing this, or can somebody suggest a better way to go about the problem?
Thanks