IF "%%~zF" GTR "30000" (move %%F %location%\test)
)
And ELSE has to follow on the same line as a closing bracket.
While that is considered in farhankazi's answer, the formatting is awkward. It should be
Hello Gents,
Can you pls have a look @ this statement...
I can't get the ELSE statement to work.... (the batch closes, and can't see the error)
The IF is working....
I would like to move a file to a dir "1" IF its bigger then 300 kb.
If its NOT bigger then 300 kb move it to dir "2".
Thnx
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I like your second post Qlemo.
I have tested the first two posts, and had problem with the subdirs, since the script was looking into it.
After changing the two locations, it works.
Since i have a working solution, my problem is solved.
I'll try to make it better tomorrow with Qlemo's second post, and will upload the solution and reward the points two you both.
Thanx gents...
Oke gents,
Here the end result of the Script.
I have an INI file with some variables to play with.
Below the content of it.
I had to build a time-out in the loop due to a high CPU load. (+80%)
20 millisec time-out was reducing the load to 4~5 %
Higher then 30 millisec reduces it to just 2% ;)
Thanx guys.
[Queue Prod-1 directory]
==========================
PROD-1=C:\Convert_data\pro
PROD-2=\\tpnl03s004\C$\Con
[Queue if statement in bytes]
==========================
Filesize=500000
[Queue if statement in bytes]
==========================
dirsize=800000
[Location PRE-in Queue]
==========================
Location=C:\Convert_data\P
Business Accounts
Answer for Membership
by: farhankaziPosted on 2009-10-22 at 11:08:02ID: 25637231
Try following if this works for you!
Select allOpen in new window