I want to echo the result of dir comamnd in the command prompt. How do I do that? I've already tried:
- echo dir
- echo $dir
I want to echo the result of dir comamnd in the command prompt. How do I do that? I've already tried:
an example of this shown in another stackoverflow post is.
FOR /F "delims=" %i IN ('date /t') DO set today=%i
echo %today%
Displays todays current day. u could replace that for dir.