Python Script Rename

During serial collecting data from cyberglove , Some accident happens!!! timeout signal from cyberglove coming when chatting with phd candidate from tokai u. Have to change name of file follow order that continue from last time collecting. So

import os
for fname in os.listdir(os.getcwd()):
if fname.endswith('.dat'):
os.rename(oldname, newname)


i google and get interested information smart author!!!:)

Comments

Popular posts from this blog

Return Code 127