Python Forum
Creating a bat file to call Python from command line
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating a bat file to call Python from command line
#1
I have created a .bat file containing
@echo off
set PATH=C:\Users\Dimitris\AppData\Local\Programs\Python\Python36-32;%SystemRoot%\System32
C:\Users\Dimitris\Documents
cd \Programmes
cmd.exe
According to the book I am working this should call the command line from where I could program in Python language (sure I know about IDLE and Python shell!). I just want to figure out what I am doing wrong. Thank you very much in advance for your help.
Reply


Messages In This Thread
Creating a bat file to call Python from command line - by dimitrisana - Feb-18-2017, 12:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to Randomly Print a Quote From a Text File When User Types a Command on Main Menu BillKochman 13 1,093 Apr-24-2024, 05:47 AM
Last Post: Bronjer
  Is possible to run the python command to call python script on linux? cuten222 6 823 Jan-30-2024, 09:05 PM
Last Post: DeaD_EyE
  Help creating shell scrip for python file marciokoko 10 1,451 Sep-16-2023, 09:46 PM
Last Post: snippsat
  File "<string>", line 19, in <module> error is related to what? Frankduc 9 12,699 Mar-09-2023, 07:22 AM
Last Post: LocklearSusan
  Getting last line of each line occurrence in a file tester_V 1 904 Jan-31-2023, 09:29 PM
Last Post: deanhystad
  Creating csv files from Excel file azizrasul 40 5,975 Nov-03-2022, 08:33 PM
Last Post: azizrasul
  Command line argument issue space issue mg24 5 1,375 Oct-26-2022, 11:05 PM
Last Post: Yoriz
  accept command line argument mg24 5 1,380 Sep-27-2022, 05:58 PM
Last Post: snippsat
  Writing string to file results in one character per line RB76SFJPsJJDu3bMnwYM 4 1,419 Sep-27-2022, 01:38 PM
Last Post: buran
  Print to a New Line when Appending File DaveG 0 1,246 Mar-30-2022, 04:14 AM
Last Post: DaveG

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020