Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > help needed!

Reply
Thread Tools

help needed!

 
 
drjekil
Guest
Posts: n/a
 
      05-09-2008

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%21...p17148388.html
Sent from the Python - python-list mailing list archive at Nabble.com.

 
Reply With Quote
 
 
 
 
Mike Driscoll
Guest
Posts: n/a
 
      05-09-2008
On May 9, 8:54*am, drjekil <(E-Mail Removed)> 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%21...p17148388.html
> Sent from the Python - python-list mailing list archive at Nabble.com.


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

Mike
 
Reply With Quote
 
 
 
 
Mike Driscoll
Guest
Posts: n/a
 
      05-09-2008
On May 9, 8:54*am, drjekil <(E-Mail Removed)> 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%21...p17148388.html
> Sent from the Python - python-list mailing list archive at Nabble.com.


Or use the glob module and a loop...

Mike
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Help Help Pentax S5i Help needed (Please) The Martian Digital Photography 14 06-20-2008 07:56 AM
HELP - HELP - HELP =?Utf-8?B?S2ltb24gSWZhbnRpZGlz?= ASP .Net 4 03-09-2006 12:46 PM
HELP WANTED HELP WANTED HELP WANTED Harvey ASP .Net 1 07-16-2004 01:12 PM
HELP WANTED HELP WANTED HELP WANTED Harvey ASP .Net 0 07-16-2004 10:00 AM
HELP! HELP! HELP! Opening Web Application Project Error =?Utf-8?B?dHJlbGxvdzQyMg==?= ASP .Net 0 02-20-2004 05:16 PM



Advertisments