You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: logs.py
+3-3
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Script Name : logs.py
2
2
# Author : Craig Richards
3
3
# Created : 13th October 2011
4
-
# Last Modified : 14 February 2016
4
+
# Last Modified : 14 February 2016
5
5
# Version : 1.2
6
6
#
7
7
# Modifications : 1.1 - Added the variable zip_program so you can set it for the zip program on whichever OS, so to run on a different OS just change the locations of these two variables.
@@ -12,8 +12,8 @@
12
12
importos# Load the Library Module
13
13
fromtimeimportstrftime# Load just the strftime Module from Time
14
14
15
-
logsdir="c:\puttylogs"# Set the Variable logsdir
16
-
zip_program="zip.exe"# Set the Variable zip_program - 1.1
15
+
logsdir="c:\puttylogs"# Set the Variable logsdir
16
+
zip_program="zip.exe"# Set the Variable zip_program - 1.1
17
17
18
18
forfilesinos.listdir(logsdir): # Find all the files in the directory
19
19
iffiles.endswith(".log"): # Check to ensure the files in the directory end in .log
0 commit comments