中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 10:46
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » [Finished] Can FOR be used to move other files?
Printable Version  944 / 3
Floor1 liu3157551 Posted 2010-04-15 15:05
中级用户 Posts 164 Credits 259
I want to move the other files under a folder and its subfolders, for example: move everything except .vbs to another folder.

Thanks to myself for keeping trying. Finally figured it out

[ Last edited by liu3157551 on 2010-4-15 at 15:43 ]
Floor2 liu3157551 Posted 2010-04-15 15:43
中级用户 Posts 164 Credits 259


[ Last edited by liu3157551 on 2010-4-15 at 15:44 ]
Floor3 Hanyeguxing Posted 2010-04-15 16:53
银牌会员 Posts 897 Credits 1,039 From 在地狱中仰望天堂
'"dir /a-d /b *.* | findstr /v ".vbs$""'
can also be written as
'dir /a-d /b *.* ^| findstr /v ".vbs$"'
Floor4 liu3157551 Posted 2010-04-15 21:13
中级用户 Posts 164 Credits 259
What's the difference??
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023