[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[其他] 想请教一个...可以拷贝文件的批处理...

由于有时候需要把一个游戏...拷贝到移动硬盘里面去...可是运用系统自带的拷贝的话。.很慢而且很不理想....一但出现断开或者是没反应...那么我又得重新来过...很烦人...所以想请教一个...bat处理.....

  打个比方说..我想将D:\game\Warcraft文件夹里面的所有文件..都拷贝到H:里面去...

  有那位能把批处理做出来给我嘛.....因为我是刚开始学习批处理...实在是做不出....使用copy这个命令...一运行bat的话。就提示出错。..或者是文件拷贝不了...

  copy的时候.....能看得到拷贝文件的运行的么。...

@for /f "delims=" %%a in ('dir/b/a D:\game\Warcraft') do copy "%%a" h:\
心绪平和,眼藏静谧。

TOP

  楼主其实是想要一个能加快复制速度并且支持断点续传功能的软件吧,可以试试FastCopy或者TeraCopy这两款软件,批处理目前还做不到加快复制速度,只能变相地支持断点续传。
尺有所短寸有所长,学好批处理没商量;
考虑问题复杂化,解决问题简洁化。

心在天山,身老沧州。

TOP

我明白了...谢谢啦...

不过我想问一个问题...delims  这个词代表着什么意思

TOP

回复 4楼 的帖子

尽快学会看帮助
for /?
        eol=c           - specifies an end of line comment character
                          (just one)
        skip=n          - specifies the number of lines to skip at the
                          beginning of the file.
        delims=xxx      - specifies a delimiter set.  This replaces the
                          default delimiter set of space and tab.

        tokens=x,y,m-n  - specifies which tokens from each line are to
                          be passed to the for body for each iteration.
                          This will cause additional variable names to
                          be allocated.  The m-n form is a range,
                          specifying the mth through the nth tokens.  If
                          the last character in the tokens= string is an
                          asterisk, then an additional variable is
                          allocated and receives the remaining text on
                          the line after the last token parsed.
        usebackq        - specifies that the new semantics are in force,
                          where a back quoted string is executed as a
                          command and a single quoted string is a
                          literal string command and allows the use of
                          double quotes to quote file names in
                          filenameset.
我帮忙写的代码不需要付钱。如果一定要给,请在微信群或QQ群发给大家吧。
【微信公众号、微信群、QQ群】http://bbs.bathome.net/thread-3473-1-1.html
【支持批处理之家,加入VIP会员!】http://bbs.bathome.net/thread-67716-1-1.html

TOP

返回列表