已经做好的bat包
http://www.namipan.com/d/40166a9cb234ac81e3b98d73d8a0726286ff760d210a0100
3个bat :
f_cd.bat 负责找出带有win98文件夹的光盘并将盘符,赋值给变量 cdron
f_hd.bat 负责找出识别出来的最后一个本地可写分区盘符,并赋值给变量 drv
mv.bat 根据f_cd.bat和f_hd.bat 的运行结果 把光盘中win98文件夹的内容复制到最后分区的 win98文件夹中。
涉及到的软件:
drvtypes 列举本地磁盘盘符
nset 接受命令传递信息并设置环境变量
aset 设置环境变量和数值运算
findcd 查找光驱
find 查找文本块中的字符串
xcopy 文件夹整体复制
dready 判断磁盘状态
The already prepared bat package
http://www.namipan.com/d/40166a9cb234ac81e3b98d73d8a0726286ff760d210a0100
3 bats:
f_cd.bat is responsible for finding the CD - ROM with the win98 folder and assigning the drive letter to the variable cdron
f_hd.bat is responsible for finding the drive letter of the last recognized local writable partition and assigning it to the variable drv
mv.bat copies the contents of the win98 folder in the CD - ROM to the win98 folder in the last partition according to the running results of f_cd.bat and f_hd.bat.
Involved software:
drvtypes lists local disk drive letters
nset accepts command - passed information and sets environment variables
aset sets environment variables and performs numerical operations
findcd finds CD - ROMs
find finds the string in the text block
xcopy copies the folder as a whole
dready judges the disk status