My team has just migrated to Win 7. We have a batch file that is no longer working. Here is the line that has a problem.
start "NameOfWindow" /DSomeDirWeWantCWD ..\SomeDir\SomeNameOfAnEXE m
Under Win XP this command does the following. 1. Executes "SomeNameOfAnEXE" located in directory "SomeDir" 2. Sets the Current Working Directory of the executed process to "SomeDirWeWantCWD" 3. Sets the name of the window to "NameOfWindow"
Under Win 7 step number 3 is not working. The window title becomes.... "C:\FullPathTo\SomeDir\SomeNameOfAnEXE.exe"
What command to I run to get the same behavior in Win 7 and Win XP?
I need to change the name of the window because we have scripts that run that use the window name to hook in commands.