Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

Thanks!

share|improve this question

1 Answer 1

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

 
discard

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.