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. Below is the command I enter each time the command prompt starts now: chcp 1252 How can I have this command run automatically when opening with the shortcut?
-
Answer:
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
TheDeeno at Super User Visit the source
Other answers
Per the http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/cmd.mspx?mfr=true, The registry keys: HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun\REG_SZ HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun REG_EXPAND_SZ should do what you want.
Jordan
Related Q & A:
- How To Run A Command In Ubuntu?Best solution by Yahoo! Answers
- How do I run a silent auction?Best solution by Yahoo! Answers
- How do I run a fast mile?Best solution by Yahoo! Answers
- How can I use a HDMI when my TV/Monitor doesn't have internal speakers?Best solution by Yahoo! Answers
- How do I run a game on both of my monitors?Best solution by tomshardware.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.