:: This script opens a prompt on AUTOCAD2 for running python scripts. :: It addresses the following problems: :: - CMD can't run on UNC file paths. :: - The system PATH environment variable on AUTOCAD2 points to an old Python. :: - Installing anaconda for all users requires admin rights. :: Define python installation location set PYTHONPATH=C:\Users\Public\Anaconda3 :: Mount current folder on network drive (CMD doesn't like UNC file paths) cls pushd %~dp0 :: Activate anaconda environment %windir%\system32\cmd.exe /K ""%PYTHONPATH%\Scripts\activate.bat" "%PYTHONPATH%"