help needed!

Discussion in 'Python' started by drjekil, May 9, 2008.

  1. drjekil

    drjekil Guest

    i have a script which will do a specific task for a file in a folder,now i
    would like to do the same task for the all files in that folder(25
    files).how can i do that?

    Thanks in advance.

    --
    View this message in context: http://www.nabble.com/help-needed!-tp17148388p17148388.html
    Sent from the Python - python-list mailing list archive at Nabble.com.
     
    drjekil, May 9, 2008
    #1
    1. Advertising

  2. On May 9, 8:54 am, drjekil <> wrote:
    > i have a script which will do a specific task for a file in a folder,now i
    > would like to do the same task  for the all files in that folder(25
    > files).how can i do that?
    >
    > Thanks in advance.
    >
    > --
    > View this message in context:http://www.nabble.com/help-needed!-tp17148388p17148388.html
    > Sent from the Python - python-list mailing list archive at Nabble.com.


    Use a loop, probably in combination with os.walk.

    Mike
     
    Mike Driscoll, May 9, 2008
    #2
    1. Advertising

  3. On May 9, 8:54 am, drjekil <> wrote:
    > i have a script which will do a specific task for a file in a folder,now i
    > would like to do the same task  for the all files in that folder(25
    > files).how can i do that?
    >
    > Thanks in advance.
    >
    > --
    > View this message in context:http://www.nabble.com/help-needed!-tp17148388p17148388.html
    > Sent from the Python - python-list mailing list archive at Nabble.com.


    Or use the glob module and a loop...

    Mike
     
    Mike Driscoll, May 9, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. andy

    urgent help needed !

    andy, Jul 12, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    913
  2. Thomas Nick
    Replies:
    0
    Views:
    1,895
    Thomas Nick
    Jun 13, 2005
  3. Ryan Macy

    Ideas needed & help needed!

    Ryan Macy, Jul 19, 2006, in forum: Ruby
    Replies:
    2
    Views:
    519
    Ryan Macy
    Jul 19, 2006
  4. LeTubs
    Replies:
    6
    Views:
    126
    Tad McClellan
    Jan 25, 2004
  5. John Farold
    Replies:
    0
    Views:
    390
    John Farold
    Aug 29, 2012
Loading...

Share This Page