I have this batch file script.
It runs multiple instances of the same program with slightly different settings.
The program isn't notepad btw and the parameters aren't those, it's just here to make it clearer.
timeout /t 0
start cmd /k "title My Title 1 & cd C:\Windows && C: & notepad -noforcemparms & echo note1"
timeout /t 5
start cmd /k "title My Title 2 & cd C:\Windows && C: & notepad -noforcemaccel & echo note2"
timeout /t 5
start cmd /k "title My Title 3 & cd C:\Windows && C: & notepad -noforcemspd -noforcemaccel & echo note3"
The issue is that the title of the window becomes "My Title 1 - notepad -noforcemparms".
What I expected was the window to only be "My Title 1".
The reason I need this in batch:
I have this in powershell, and it changes the title properly, but due to some policies I'm unable to run the ps script on the machine I need it to run on. So I had to convert those to batch.
Is it even possible to change the title like that in batch?
start "My Title 1" /k "cd C:\Windows && C: & notepad -noforcemparms & echo note1"