What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Make a batch file please?

Make a batch file please?
Author: Message:
Jarrod
Veteran Member
*****

Avatar
woot simpson

Posts: 1304
Reputation: 20
– / Male / Flag
Joined: Sep 2006
RE: Make a batch file please?
I finished about 2 minutes after sam posted, but anyway
python code:
import sys,os,time
year=time.localtime()[0]
month=time.localtime()[1]
date=time.localtime()[2]
hour=time.localtime()[3]
mins=time.localtime()[4]
if hour >=12 and hour<23:
hour=hour-12
med="pm"
else:med="am"
os.rename(sys.argv[1],"%s.%s.%s-%s.%s.%s-"%(month,date,year,hour,mins,med)+sys.argv[1])

[Image: 5344.png]
[Image: sig.png]

A.k.a. The Glad Falconer














11-15-2009 10:03 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Make a batch file please? - by MeEtc on 11-15-2009 at 03:08 AM
RE: Make a batch file please? - by Jarrod on 11-15-2009 at 06:41 AM
RE: Make a batch file please? - by MeEtc on 11-15-2009 at 06:53 AM
RE: Make a batch file please? - by prashker on 11-15-2009 at 07:23 AM
RE: Make a batch file please? - by Jarrod on 11-15-2009 at 10:03 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On