How Should I Set Default Python Version In Windows?

This is if you have both the versions installed. Go to This PC -> Right-click -> Click on Properties -> Advanced System Settings. You will see the System Properties. From here navigate to the “Advanced” Tab -> Click on Environment Variables. You will see a top half for the user variables and the bottom half for System variables. Check the System Variables and double-click on … Read more

Moving file using cmd?

To move a file, you use the move command. I put quotes around the source and target in case you’re one of those people who has spaces in their username for some reason (and the target needs them anyway for the spaces in “Start Menu”). From the output of move /?:

Color echo in batch files

It’s probably easier if you call a custom C++ program. Although it’s not really necessary to do something like this, it’s possible. There’s a pre-made C++ script compiled into something Windows can run at http://www.codeproject.com/Articles/17033/Add-Colors-to-Batch-Files The site explains mostly everything you need to know, but I’ll give some help an examples here. The color codes you can use … Read more

“npm config set registry https://registry.npmjs.org/” is not working in windows bat file

You shouldn’t change the npm registry using .bat files. Instead try to use modify the .npmrc file which is the configuration for npm. The correct command for changing registry is npm config set registry <registry url> you can find more information with npm help config command, also check for privileges when and if you are running .bat files this way.

Batch script loop

for /l is your friend: Starts at 1, steps by one, and finishes at 100. Use two %s if it’s in a batch file (which is one of the things I really really hate about windows scripting) If you have multiple commands for each iteration of the loop, do this: or in a batch file Key:/l denotes that … Read more

How to “comment-out” (add comment) in a batch/cmd?

The rem command is indeed for comments. It doesn’t inherently update anyone after running the script. Some script authors might use it that way instead of echo, though, because by default the batch interpreter will print out each command before it’s processed. Since rem commands don’t do anything, it’s safe to print them without side effects. To avoid printing a command, prefix … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)