Sleep(10000) ShellExecute("Explorer.exe", "D:", "", "", @SW_MAXIMIZE) ShellExecute("C:\WINDOWS\system32\notepad.exe", "D:\READ_PC.TXT") WinWait("READ_PC.TXT - Notepad") WinWait("34thLPSC (D:)") WinActivate("READ_PC.TXT - Notepad")