0
python program1.py

This is what i input when i try to open my file using cmd.

python program1.py C:\Logs

Is it possible to have an input like the one above so i can use that input on my program ? The input should be on the same command calling the python code

martineau
  • 119,623
  • 25
  • 170
  • 301

1 Answers1

0

Not sure what you mean, If you're asking how to give args I'm pretty sure it's python program.py "Arg". If you asking how to get it, import sys, and it is stored in sys.argv