Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/python
- import os
- import time
- fstr = time.strftime("%d%b%Y_%H%M%S")
- logfile = "log_"+fstr+".txt"
- rcmd = 'dir /OD >logfile '
- os.system(rcmd)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement