Utmost noob question (i think)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • askalottaqs
    New Member
    • Jun 2007
    • 75

    Utmost noob question (i think)

    Hello nice people :)

    I am doing this code that reads excel sheets(useless piece of info), and from that data it should run a command in the command prompt, (i am using a program that has a command line capability),

    so to get to what i want, i want to run this command, inside the python code, how wld i be able to do that??

    thanks a lot people
  • dazzler
    New Member
    • Nov 2007
    • 75

    #2
    Hello hello

    [code=python]
    import os

    os.system("dir" )
    [/code]

    here's example sending dir command to command prompt :)

    Comment

    • askalottaqs
      New Member
      • Jun 2007
      • 75

      #3
      Originally posted by dazzler
      Hello hello

      [code=python]
      import os

      os.system("dir" )
      [/code]

      here's example sending dir command to command prompt :)

      thanks a lot mate :)

      Comment

      Working...