terminal
terminal copied to clipboard
Profile Shortcut fails to open with .cmd file
Environment
Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Windows Terminal version (if applicable): 0.7.3291.0
Any other software?
.cmd file
Steps to reproduce
- Create file named test.cmd
- Add some command to the file
- Create a terminal profile with the startingDirectory variable pointed to the folder of the cmd file, and the commandLine variable equal to the name of the file (test.cmd)
- Attempt to open the profile in terminal
Expected behavior
Expected behavior is to open the cmd file and execute the commands within the file.
Actual behavior
Actual behavior is the terminal flashes like it quickly opened and closed the file. 2 weeks ago it would open the file and keep it open while executing the exact same commands. (the script I am using stays open until it is manually closed).
Sorry -- this is now by design. Terminal will no longer execute files from the startingDirectory directly. You can either set commandline: "%COMSPEC% /c test.cmd" or specify a full path to test.cmd.