[PYTHON] Find out about launching Anaconda Prompt

Overview

This is the content of the investigation about starting Anaconda Prompt. The contents of activate.bat will be a separate article, including shortcuts and how to use cmd.exe.

Anaconda Prompt

Property

1.png

Change icon

2.png

Link destination

Property value
Link destination %windir%\system32\cmd.exe "/K" C:\Users\XXXXXX\Anaconda3\Scripts\activate.bat C:\Users\XXXXXX\Anaconda3

It is a shortcut of cmd.exe, and it is executed by passing "Anaconda3 path" as an argument to "activate.bat". In this case, the same applies to the following.

%windir%\system32\cmd.exe "/K" %USERPROFILE%\Anaconda3\Scripts\activate.bat %USERPROFILE%\Anaconda3



 Also, "/ K" is added to prevent the command prompt from exiting even after executing .bat.


 [Cmd --DOS Command List --Programming Field] [5]
> ```/K <command>```
 > `` `` <command> `` `Executes the contents specified by`. After executing, "cmd.exe that executed this command" does not end and continues to display the prompt. When creating a shortcut for a batch file on Windows, you can use cmd.exe / K to execute "Run Batch File"-> "Command Prompt" in succession. This is useful when you want to display a command prompt in a specific environment (such as a resident program or environment variables) **

 In addition, "Open Ruby Command Prompt" was a similar startup method.

C:\Windows\System32\cmd.exe /E:ON /K C:\Ruby22-x64\bin\setrbvars.bat


### Working folder

 |Property|value|
 |:---|:---|
 |Working folder|``` C:\Users\XXXXXX```|

 It will be the current folder after starting.
 ![3.PNG](https://qiita-image-store.s3.amazonaws.com/0/34777/9b41bdc0-ef88-bc7c-9de9-02b0538ee5fe.png)


#### **`\Users\XXXXXX → %USERPROFILE%It is the same even if you change it to.`**
``` c


 If left blank, the folder in which the shortcut was executed will be the current folder.
 Copy the Anaconda Prompt shortcut to the folder you want to be the current folder at startup,
 It is good to leave the working folder field blank.


### Change icon

 |Property|value|
 |:---|:---|
 |Find the icon for this file|%USERPROFILE%\Anaconda3\Menu\Iconleak-Atrous-Console.ico|

 [Console Icon _ Atrous Iconset _ IconLeak] Changed to the icon of [6].

 I will write another article about the contents of activate.bat.



# reference
[Console Icon _ Atrous Iconset _ IconLeak][6]
[6]:http://www.iconarchive.com/show/atrous-icons-by-iconleak/console-icon.html

 [Cmd --DOS Command List --Programming Field] [5]
[5]:https://pf-j.sakura.ne.jp/program/dos/doscmd/cmd.htm







Recommended Posts

Find out about launching Anaconda Prompt
Find out about SVM
[Python] Find out about pip
Find out about Cinema 4D's Python environment
Let's find out about ROS (Robot Operating System)
I tried to find out the outline about Big Gorilla