Board logo

标题: [其他] 想请教一个...可以拷贝文件的批处理... [打印本页]

作者: Bastard    时间: 2008-9-12 21:09     标题: 想请教一个...可以拷贝文件的批处理...

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

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

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

  copy的时候.....能看得到拷贝文件的运行的么。...
作者: pusofalse    时间: 2008-9-12 21:36

@for /f "delims=" %%a in ('dir/b/a D:\game\Warcraft') do copy "%%a" h:\
作者: namejm    时间: 2008-9-12 22:27

  楼主其实是想要一个能加快复制速度并且支持断点续传功能的软件吧,可以试试FastCopy或者TeraCopy这两款软件,批处理目前还做不到加快复制速度,只能变相地支持断点续传。
作者: Bastard    时间: 2008-9-13 22:20

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

不过我想问一个问题...delims  这个词代表着什么意思
作者: Batcher    时间: 2008-9-13 22:25     标题: 回复 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.





欢迎光临 批处理之家 (http://www.bathome.net/) Powered by Discuz! 7.2