Home » Questions » Computers [ Ask a new question ]

How do I run a command when opening cmd.exe with shortcut?

How do I run a command when opening cmd.exe with shortcut?

I'd like to change the encoding of the command prompt when being opened rather than typing the command at the start of my session each time.

Asked by: Guest | Views: 265
Total answers/comments: 1
bert [Entry]

"In the target box of your shortcut, use

cmd /K ""chcp 1252""

This should run your program and leave the cmd window up when complete"