change extensions

Tim Roberts timr at probo.com
Fri Apr 8 02:48:10 EDT 2005


"Bob Then" <bob_then at yahoo.com.au> wrote:

>how can i change all files from one extension to another within a direcory?

In Windows, the quickest way is:

    os.system( "rename *.old *.new" )
-- 
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list