| 
 | 
 
请教各位大虾..小弟做了个dos下的批处理 用来在DOS下查找U盘 然后把硬盘的某个文件COPY到U盘里.........做好的BAT文件放到IMG里面去 然后用GRUB4DOS启动img.运行自作的BAT会提示. Required Parameter missing 
缺少必要的参数 ?把bat用软件转换成exe 也是同样的问题..请问这是怎么回事呢???? 附批处理如下... 
set UDrv= 
set PeFlag=r3m1 
rem 找PeFlag文件就代表找到U盘 
if exist z:\%PeFlag% set UDrv=z: 
IF not "%UDrv%"=="" GOTO ufind 
if exist y:\%PeFlag% set UDrv=y: 
IF not "%UDrv%"=="" GOTO ufind 
if exist x:\%PeFlag% set UDrv=x: 
IF not "%UDrv%"=="" GOTO ufind 
if exist w:\%PeFlag% set UDrv=w: 
IF not "%UDrv%"=="" GOTO ufind 
if exist v:\%PeFlag% set UDrv=v: 
IF not "%UDrv%"=="" GOTO ufind 
if exist u:\%PeFlag% set UDrv=u: 
IF not "%UDrv%"=="" GOTO ufind 
if exist t:\%PeFlag% set UDrv=t: 
IF not "%UDrv%"=="" GOTO ufind 
if exist s:\%PeFlag% set UDrv=s: 
IF not "%UDrv%"=="" GOTO ufind 
if exist r:\%PeFlag% set UDrv=r: 
IF not "%UDrv%"=="" GOTO ufind 
if exist q:\%PeFlag% set UDrv=q: 
IF not "%UDrv%"=="" GOTO ufind 
if exist p:\%PeFlag% set UDrv=p: 
IF not "%UDrv%"=="" GOTO ufind 
if exist o:\%PeFlag% set UDrv=o: 
IF not "%UDrv%"=="" GOTO ufind 
if exist n:\%PeFlag% set UDrv=n: 
IF not "%UDrv%"=="" GOTO ufind 
if exist m:\%PeFlag% set UDrv=m: 
IF not "%UDrv%"=="" GOTO ufind 
if exist l:\%PeFlag% set UDrv=l: 
IF not "%UDrv%"=="" GOTO ufind 
if exist k:\%PeFlag% set UDrv=k: 
IF not "%UDrv%"=="" GOTO ufind 
if exist j:\%PeFlag% set UDrv=j: 
IF not "%UDrv%"=="" GOTO ufind 
if exist i:\%PeFlag% set UDrv=i: 
IF not "%UDrv%"=="" GOTO ufind 
if exist h:\%PeFlag% set UDrv=h: 
IF not "%UDrv%"=="" GOTO ufind 
if exist g:\%PeFlag% set UDrv=g: 
IF not "%UDrv%"=="" GOTO ufind 
if exist f:\%PeFlag% set UDrv=f: 
IF not "%UDrv%"=="" GOTO ufind 
if exist e:\%PeFlag% set UDrv=e: 
IF not "%UDrv%"=="" GOTO ufind 
if exist d:\%PeFlag% set UDrv=d: 
IF not "%UDrv%"=="" GOTO ufind 
if exist c:\%PeFlag% set UDrv=c: 
IF not "%UDrv%"=="" GOTO ufind 
if exist b:\%PeFlag% set UDrv=b: 
IF not "%UDrv%"=="" GOTO ufind 
if exist a:\%PeFlag% set UDrv=a: 
IF not "%UDrv%"=="" GOTO ufind 
:ufind 
copy r3memid.log %uRrv%\r3m1 |   
 
 
 
 |