Welcome, guest | Sign In | My Account | Store | Cart

This script was written as a revision of recipe 577456 as a variation on a theme.

Python, 4 lines
1
2
3
4
import os, sys
this = int(os.path.splitext(os.path.basename(sys.argv[0]))[0])
os.rename(str(this) + '.py', str(this + 1) + '.py')
os.startfile(str(this + 1) + '.py')

This is another benchmark after two years, nine months.