Is there a similar command line function that I can use in a script file similar to the read command in *nix?
For instance, in *nix I can do this to read the number of files in a directory:
/usr/bin/ls -1 | /usr/bin/wc -l | read numfiles
Is there anything I can do in windows to do the same thing? I know almost nothing about DOS/windows scripting.
For instance, in *nix I can do this to read the number of files in a directory:
/usr/bin/ls -1 | /usr/bin/wc -l | read numfiles
Is there anything I can do in windows to do the same thing? I know almost nothing about DOS/windows scripting.
