Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Looking for an alternative of .bash_profile-like configure file for windows command prompt, but no luck.

alias is main reason I would like to use .bash_profile. Currently I locate my own command in a specific folder and add folder path to %PATH%, it's quite not maintainable.

Any help is highly appreciated.


share|improve this question

How about creating a .bat file with all your cmd stuff you want to run at the beginning of a command line session.

Then create a new shortcut with the command line:

 cmd /k c:\users\pandadrunkard\cmdsetup.bat

Then use the shortcut to open a new cmd session.

The /k switch will run the batch file, but keep the cmd window open for further commands, keeping anything you setup in the batch file valid for the session.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.