标题: [文件操作] xxcopy安装批处理程序中的一段,能帮忙解释一下有什么作用吗? [打印本页]
作者: semiuel 时间: 2008-11-10 18:44 标题: xxcopy安装批处理程序中的一段,能帮忙解释一下有什么作用吗?
不知道这段代码在程序中起什么作用?
我看了一下,程序后面的代码只是先判断有没有需要的几个文件,然后把这几个文件复制到相应目录.
- if "%OS%"=="Windows_NT" ((cd /d %~dp0)&(goto next))
- echo %0 | find.exe ":" >nul
- if not errorlevel 1 %0\
- cd %0\..
- :next
- echo The current directory is:
- cd
- echo.pause
复制代码
[ 本帖最后由 semiuel 于 2008-11-10 23:58 编辑 ]
作者: Batcher 时间: 2008-11-11 12:05
能否把完整的代码贴出来看看?
欢迎光临 批处理之家 (http://bbs.bathome.net/) |
Powered by Discuz! 7.2 |