Webster Posted August 18, 2008 Share Posted August 18, 2008 I currently have three different dos based programs that look identical in a window. I have a pif for each of them which does put a different name on each window, but have not had success in running the pif file with ShellExecuteWait. So I use the ShellExecuteWait command /w @comspec and a string, a working directory. Is there a way to set the windows name that this this command produces to something other than "Select C\WINDOWS\system32\cmd.exe"? Link to comment Share on other sites More sharing options...
dillonlim Posted August 18, 2008 Share Posted August 18, 2008 1. Write a batch file to launch your dos program. 2. Use the "title" command in the batch file to name the title bar of the window. 3. Update your PIF to point to the batch file instead of the actual executable. Link to comment Share on other sites More sharing options...
Webster Posted August 18, 2008 Author Share Posted August 18, 2008 That was a wonderfull tip. Thanks so much. Sometimes its the little things in life. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now