Select to view content in your preferred language

.CSV

704
2
12-30-2011 06:20 PM
GerniceMuhamed
Emerging Contributor
Does anyone know how to write a script for start & end time, files processed into a .CSV file?
Tags (2)
0 Kudos
2 Replies
PhilMorefield
Frequent Contributor
It's probably best if you do some research and figure out the details of your particular script. You know what you need better than anyone. Here's a couple of helpful starting points.

# create a new csv file
myoutputfile = open("C:\\example.csv", "w")

import time
start = time.ctime()

# do a bunch of stuff...

stop = time.ctime()

myoutputfile.write("Started: {0}\n".format(start)
myoutputfile.write("Finished: {0}\n".format(stop)
myoutputfile.close()
0 Kudos
GerniceMuhamed
Emerging Contributor
Thanks, I will see how I can incorporate this into my script...
0 Kudos