Dr
Tue Jul 11 11:17:01 CDT 2006
JRS: In article <OuvxlqApGHA.4812@TK2MSFTNGP04.phx.gbl>, dated Mon, 10
Jul 2006 12:21:38 remote, seen in news:microsoft.public.scripting.vbscri
pt, Bernd Blaue <gruene@hannoversche-kassen.de> posted :
>I use this command
>
>xcopy c:\source m:\dest\local /m/e/e/v/h/y
>
>which works quite well.
>Now I need to copy only files below 1 MByte
>because files greater than 1 MByte are rare but can fill the destination too
>quickly.
>(Sorry for my English)
>I think, the answer will be in VBS.
HUNT c:\source\*.* "copy" "m:\dest\local\*.*" z-999999 u
omit u for test or z-1048575
should do what your words ask for; and with additional parameters it
should do at least some of what your XCOPY options ask for. It can
check, but not alter, the attribute bits; but you could get it to call a
batch helper which would copy one file and change the bit; or you could
make HUNT call XCOPY with the option for that ...
Get HUNT via sig line 3.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk DOS 3.3, 6.20; Win98. ©
Web <URL:
http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links.
PAS EXE TXT ZIP via <URL:
http://www.merlyn.demon.co.uk/programs/00index.htm>
My DOS <URL:
http://www.merlyn.demon.co.uk/batfiles.htm> - also batprogs.htm.