SandBox.wsb (SandBox設定檔)
<Configuration>
<vGPU>enable</vGPU>
<MappedFolders>
<MappedFolder>
<HostFolder>D:\_SBcmd</HostFolder>
<ReadOnly>true</ReadOnly>
</MappedFolder>
</MappedFolders>
<LogonCommand>
<Command>C:\Users\WDAGUtilityAccount\Desktop\_SBcmd\SandBoxLogin.cmd</Command>
</LogonCommand>
<AudioInput>enable</AudioInput>
<VideoInput>enable</VideoInput>
<PrinterRedirection>enable</PrinterRedirection>
<MemoryInMB>4096</MemoryInMB>
</Configuration>
SandBoxLogin.cmd (SandBox 自動執行檔)
mklink /D c:\SBcmd C:\Users\WDAGUtilityAccount\Desktop\_SBcmd
start c:\SBcmd\XLiu\XLiu.exe
start/wait c:\SBcmd\ChromeSetup.exe /silent /install && c:\SBcmd\googlewebdesigner_win.exe /silent /install
reg import c:\SBcmd\HideTaskBar.reg
taskkill /F /IM explorer.exe & start explorer
exit
HideTaskBar.reg(隱藏工作列)
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3]
"Settings"=hex:30,00,00,00,fe,ff,ff,ff,03,00,00,00,03,00,00,00,6d,00,00,00,28,\
00,00,00,00,00,00,00,10,04,00,00,80,07,00,00,38,04,00,00,60,00,00,00,01,00,\
00,00
說明
Windows 的命令列模式,想在同一行執行兩指令時,用&連接,如:
c:\> command1 & command2
(也可用&&連接,用&&時表示需等待前一指令結束方可執行下個指令)
start/wait command1 && command2
確保command1結束之後、再執行command2
timeout 10
此指令執行後、會等10秒後繼續,有時要延遲指令2執行時間可將其設為指令1、挺好用的。
msg %username% Show Message
會顯示一個視窗寫「Show Message」,此指令只有部份windows版本有。若是想執行的電腦無此執令、也可到有此指令的電腦去copy回來用。其位置在C:\windows\system32中。
發表回應
( 共計302閱讀人次 )
| permalink
| ( 3 / 296 )