0

I'm trying to get a basic count of a directory, but I do not want the result to list the names of the files contained in there. Basically, what I want would be the same as a Windows properties listing, but I can't use this because some of the file paths are too long, and these are being omitted from the count.

So, I ultimately want a window showing the path that the count was taken from, the number of files and folders, and the overall size of the directory. I'm assuming a dir command would be the handiest way to do this, but I'm not sure of the correct switches to use.

Thanks!

1

1 Answer 1

0
echo %cd% & dir | findstr /b /c:"  "

Show current directory and filter the output of the dir command to only show the required information

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .