Bubba
0
Q:

Windows 10 running python scripts from cmd

#By Uku Loskit

import os
os.system("ls -l")
5
// To run pytho script from CMD
// type python and the name of the file. Assuming hello.py

python hello.py
0
# move to the directory where the script is located and run it like so
cd (path to directory)
python name.py
0

New to Communities?

Join the community