Modify the Anaconda script that sets the working directoryįind the Anaconda script cwp.py (mine was in C:\Users\bdforbes\Anaconda3\) and copy it to cwp2.py in the same directory. And obviously don't run everything I tell you to, check that it's not doing anything nefarious. Warning: Do not proceed unless you are comfortable editing the registry and are using a non-production system. The key steps are outlined below, with the explanation further down. I also wanted this functionality, so I made it. It's very minor: some whitespace has been added to the registry entry (relevant part: "%V ") so that the trailing backslash does not confuse Windows. might work better on more recent versions of Anaconda.ĪNOTHER UPDATE: I fixed an issue with using this launcher in the drive root (e.g. REG ADD HKCR\Directory\shell\Anaconda\command /f /ve /t REG_EXPAND_SZ /d "%windir%\System32\cmd.exe pushd "%V" "/K" %%USERPROFILE%%\Anaconda3\Scripts\activate.bat %%USERPROFILE%%\Anaconda3" REG ADD HKCR\Directory\shell\Anaconda\ /v Icon /f /t REG_EXPAND_SZ /d %%USERPROFILE%%\\Anaconda3\\Menu\\Iconleak-Atrous-Console.ico REG ADD HKCR\Directory\shell\Anaconda\ /ve /f /d "Anaconda Prompt Here" REG ADD HKCR\Directory\Background\shell\Anaconda\command /f /ve /t REG_EXPAND_SZ /d "%windir%\System32\cmd.exe pushd "%V" "/K" %%USERPROFILE%%\Anaconda3\Scripts\activate.bat %%USERPROFILE%%\Anaconda3" REG ADD HKCR\Directory\Background\shell\Anaconda\ /v Icon /f /t REG_EXPAND_SZ /d %%USERPROFILE%%\\Anaconda3\\Menu\\Iconleak-Atrous-Console.ico bat-file and run as administrator to add the needed keys to the registry (a modified version of the gist posted by Thibaud Ruelle in the comments to the other answer) REG ADD HKCR\Directory\Background\shell\Anaconda\ /ve /f /d "Anaconda Prompt Here" So the modified cwp2.py is not needed anymore. Pushd is to change the current directory, %V is the current directory, and /K is to run a command. The new way to launch Anaconda Prompt in a folder is cmd.exe /K %%USERPROFILE%%\AppData\Local\Continuum\Anaconda3\Scripts\activate.bat Go to the destination folder and click on the path (highlights in blue).In recent Anaconda versions (I'm at conda 4.5.5) they have changed the behaviour and the shortcut to Anaconda Prompt, so the new procedure is in fact a bit simpler than described by bdforbes.Alternatively follow the instructions below to open the command prompt (even faster than on Windows Server). The default set for Windows 10 is Windows Powershell so we cannot use the same strategy as above. Command prompt opens with the path set to your current folder.Click on File – Open command prompt – Open command prompt as administrator.Go to the destination folder, such as C:\Program Files\Tableau\Tableau Server\ 10.5\bin.Many thanks to Andy Pick and Jonathan MacDonald for saving us precious time! One for tabadmin, usually run from the server side (window server 20XX) and the other for Windows 10 (circumventing the default use of Windows powershell). Having to navigate to the bin folder, can be a pain so I have captured two ways to speed this process up. These files are located in the bin folder embedded in the tableau server folder, typical pathing: D or C:\Program Files\Tableau\Tableau Server\ 10.5\bin. There are instances where one wants to use the command prompt to carry out particular tasks, for instance the tabadmin and tabcmd for Tableau Server. A few short cuts to avoid having to start in C:\Users\User_Name when using the command prompt in Windows and Windows Server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |