<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Fire up python command prompt in custom directory in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/fire-up-python-command-prompt-in-custom-directory/m-p/1310813#M68229</link>
    <description>&lt;P&gt;You'll need to set the path to two files for ArcGIS pro's conda-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/464769"&gt;@echo&lt;/a&gt; off

REM Temporarily set the paths to esri's conda 
SET PATH=%PATH%;C:\Program Files\ArcGIS\Pro\bin\Python\Scripts;C:\Program Files\ArcGIS\Pro\bin\Python\condabin

REM Replace "your_env_name" with the name of your Conda environment
CALL conda.bat activate your_env_name

REM Change the path to the folder you want to start in
cd %USERPROFILE%\Documents

REM Add any Python script execution or other commands you want to run after activating the environment and changing the directory.

cmd.exe /k&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 23 Jul 2023 15:48:14 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2023-07-23T15:48:14Z</dc:date>
    <item>
      <title>Fire up python command prompt in custom directory</title>
      <link>https://community.esri.com/t5/python-questions/fire-up-python-command-prompt-in-custom-directory/m-p/1305798#M68089</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;ArcGIS Pro installs a Python Command Prompt shortcut in startup which is handy.&amp;nbsp; Launching it results in a command line that looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TylerT_0-1688573137845.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/74820iA39D5C28A2636711/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TylerT_0-1688573137845.png" alt="TylerT_0-1688573137845.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;with the arcgispro-py3 environment and the directory shown.&amp;nbsp; What is the best procedure for modifying the startup to default to a different directory, say...c:\temp for example instead of&amp;nbsp;C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3?&amp;nbsp; I peaked inside the batch (bat) files associated with the shortcut and saw nothing obvious to a person illiterate in batch language, and did not want to break anything, so could use some help.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Tyler&lt;/P&gt;&lt;P&gt;ArcGIS Pro 3.1.0&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 16:15:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/fire-up-python-command-prompt-in-custom-directory/m-p/1305798#M68089</guid>
      <dc:creator>TylerT</dc:creator>
      <dc:date>2023-07-05T16:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Fire up python command prompt in custom directory</title>
      <link>https://community.esri.com/t5/python-questions/fire-up-python-command-prompt-in-custom-directory/m-p/1310792#M68227</link>
      <description>&lt;P&gt;You could create your own shortcut that calls C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\proenv.bat and set the shortcut start in directory to whatever you want.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2023 02:35:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/fire-up-python-command-prompt-in-custom-directory/m-p/1310792#M68227</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2023-07-23T02:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Fire up python command prompt in custom directory</title>
      <link>https://community.esri.com/t5/python-questions/fire-up-python-command-prompt-in-custom-directory/m-p/1310813#M68229</link>
      <description>&lt;P&gt;You'll need to set the path to two files for ArcGIS pro's conda-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/464769"&gt;@echo&lt;/a&gt; off

REM Temporarily set the paths to esri's conda 
SET PATH=%PATH%;C:\Program Files\ArcGIS\Pro\bin\Python\Scripts;C:\Program Files\ArcGIS\Pro\bin\Python\condabin

REM Replace "your_env_name" with the name of your Conda environment
CALL conda.bat activate your_env_name

REM Change the path to the folder you want to start in
cd %USERPROFILE%\Documents

REM Add any Python script execution or other commands you want to run after activating the environment and changing the directory.

cmd.exe /k&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2023 15:48:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/fire-up-python-command-prompt-in-custom-directory/m-p/1310813#M68229</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-07-23T15:48:14Z</dc:date>
    </item>
  </channel>
</rss>

