1
I want that each time I start the Windows CMD, a certain command will run.
In Nix systems like Ubuntu or Centos, I would just add the desired command to /etc/bash.bashrc or /home/USERNAME/.bashrc ...
Is there a bashrc substitute in Windows?
I would love to edit this file and add my desired command there, so that in each bootstrapping of CMD, it will run first and foremost!
There is an answer here. Alternatively, you can create a short-cut which launches
– AFH – 2016-12-16T16:32:30.597cmd
with a/k
command. In either case you specify a batch file of your choice.Switch to Powershell (It will be the default soon, might as well switch now). In Powershell, you can setup a Profile.ps1 file. – Zoredache – 2016-12-16T18:12:56.323