zjm1126 zjm1126 - 1 year ago 135
Python Question

How to rename a file using Python

I want to change

a.txt
to
b.kml
.

YOU YOU
Answer Source

Use os.rename('a.txt','b.kml')

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download