#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=VHD Auto Attach 1.1\Icons\dont.ico #AutoIt3Wrapper_Outfile=VHD Auto Attach 1.1\Startup.exe #AutoIt3Wrapper_UseX64=n #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** TrayTip( "Starting Attaching...", "VHDAutoAttach starts. Please standby and let the focus on the windows!", 30, 2) Sleep(2000) $Attach = IniRead( @MyDocumentsDir & '\StevenX Media\VHDAUTOATTACH\Settings.ini', 'Settings', 'VHDDIR', 'ERROR!!') Run( "Diskpart.exe") Sleep(1000) Send('list disk {ENTER}') Send('list volume {ENTER}') Send('select vdisk file= ' & $Attach & '{ENTER}') Send('Attach vdisk {ENTER}') Sleep(1000) WinClose( "[ACTIVE]","")