|
不如用:
\\?\Harddisk0Partition2\
这种形式,更方便一些。
- PART list disk,&disks
- //MESS. %&disks%
- FIND $%&disks%<>,
- {
- FORX * %&disks%,&disk,
- {
- PART list part %&disk%,&parts
- SED &partsneed=0,[-\@][1-9][0-9]*[ ]*,,%&parts%
- //MESS. %&partsneed%
- FIND $%&partsneed%<>,
- {
- FORX * %&partsneed%,&part,
- {
- //这里如果是隐藏分区自己处理分配个盘符吧,否则7z.exe是不支持这种格式的
- FORX \\?\Harddisk%&disk%Partition%&part%\PESOFT.7z,&MySoft,1,EXEC -wait -hide "%ProgramFiles%\7-Zip\7z.exe" x %&MySoft% -y -aos -o"x:\PESOFT"
- }
- }
- }
- }
复制代码 |
|