ShellExecute("Explorer.exe", "D:\", "", "", @SW_MAXIMIZE) ShellExecute("D:\Ports of the World 2011.pdf") WinWait("Ports of the World 2011.pdf ") WinSetState("Ports of the World 2011.pdf ", "", @SW_MAXIMIZE) WinActivate("Ports of the World 2011.pdf ")