Batch programming query

Microsoft Windows xp professional editio...
October 19, 2009 at 07:29:06
Specs: Windows XP
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 var2

Var2= dir "C:\test" /b | find /v /c "::"

If %var1% == %var2% xcopy C:\test D:\test /s /e


See More: Batch programming query

Report •

October 19, 2009 at 07:31:40
Your post belongs in the programming forum.

Did you look at the choices of where to post?

Report •

October 19, 2009 at 07:37:41
Sorry ..


Report •

October 19, 2009 at 07:53:10
I wasn't scolding you. We would like to improve the functioning of this site and your answer to my question would help.

Report •

Related Solutions

October 19, 2009 at 07:58:44

I will post the query in right forum.

Report •

October 19, 2009 at 08:25:50

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.

Report •

Ask Question