|
原帖由 2011mking 于 2012-5-8 17:03 发表
if exist %windir%\system32\drivers\imdisk.sys goto :装载Ramdisk
imdisksetup.exe
:装载Ramdisk
.....
----------------------------------
另外,拟了一个跳过空盘驱动器的搜索,有兴趣的可以试试
...
我用联想机器试了下,没反应啊
----------------------------------------------------------
On Error Resume Next
Dim fso, SubDrives, i,File
Set fso = CreateObject("Scripting.FileSystemObject")
Set SubDrives = fso.Drives
set ws=WScript.CreateObject("WScript.Shell")
For Each i In SubDrives
File=i.DriveLetter & "\petools\xx.exe"
if i.IsReady=true then
if fso.FileExists(File) then
ws.Run File,0 :Exit For
End if
End if
Next
-------------------------------------------------------------
单独运行\petools\xx.exe能够加载外置,就是有错误提示!! |
|