mshox1
asked on
simple dos command to find number of files in a directory or folder
I need to find a simple command (from dos) to find out number of files in a given directory (or path).
currently, it will display all the filename first, then at the end, it give me number of files.
thank you
currently, it will display all the filename first, then at the end, it give me number of files.
thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
what is the above command will do?
dir /a-d /b | find /v /c ""
Like to know more explanation of this command's variables.
thanks
dir /a-d /b | find /v /c ""
Like to know more explanation of this command's variables.
thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thank you.
I have a follow up questions:
what is the best and simple command to copy all the files/subfolder from 1 place to the others?
xcopy c:\base_folder /s y:\base_folder /y /v
-- I like to copy a folder, with all its files and sub directory, to another driver, replace the file is exist,
if folder not exist, will create it, if folder exist, will replace it, and then verify if copy complete.
thanks
I have a follow up questions:
what is the best and simple command to copy all the files/subfolder from 1 place to the others?
xcopy c:\base_folder /s y:\base_folder /y /v
-- I like to copy a folder, with all its files and sub directory, to another driver, replace the file is exist,
if folder not exist, will create it, if folder exist, will replace it, and then verify if copy complete.
thanks
Sorry, but that is no follow up question, because it isn't related. EE protocol says you need to post a new question for that.
ASKER
thanks a lot
Open in new window
~bp