Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
I am new to batch programming..
I want to copy files from one folder to another only certain file count in a particular directoy is met.Please find my code below. Its not working ..Please correct the code and let me .
set var1 = 2
set var2Var2= dir "C:\test" /b | find /v /c "::"
If %var1% == %var2% xcopy C:\test D:\test /s /e
pause

I wasn't scolding you. We would like to improve the functioning of this site and your answer to my question would help.

chetan
I will ask again in a new way.
Why did you post in the WinXP forum? Is the site confusing?
Did you think your question belonged in the WinXP forum because you use WinXP?
I am trying to help the site administrator improve the site. Your answers will help.

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |