oWSH = CreateObject( "WScript.Shell" ) >oWSH.AppActivate( "Command Prompt - FOXPROX" ) >oWSH.SendKeys("%~")The AppActivate sets focus to the DOS App, but it remains in the background. The SendKeys does not appear to do anything - I am testing this in the command window, by selecting the two lines of code (AppActivate and SendKeys) and then right-mouse Execute Selection. In the SendKeys, is that a percent character, followed by tilde?