mo_shaojie 发表于 2010-11-15 15:15:05

关于bcdedit的AU3写法.

批处理的
for /f "tokens=2" %%c in ('BCDEDIT /CREATE /D "BOOT FROM GRUB" /application bootsector ') do set id=%%c
这个用AU3怎么写法?
RunWait(@ComSpec& ' /c ' & 'for /f "tokens=2" %%c in ("BCDEDIT /CREATE /D "Windows XP Profrenonal" /application bootsector ") do set id=%%c')
这样写不对的.
RunWait(@ComSpec & " /c " & "bcdedit /timeout " & $input, "", @SW_HIDE)
这个时间的写法在WIN7下测试了,也改变不了那个启动时间.
$input为输入的时间变量.
有点疑惑.
请教高手们来支下招.
页: [1]
查看完整版本: 关于bcdedit的AU3写法.