113 lines
9.9 KiB
INI
113 lines
9.9 KiB
INI
####################################################################################################
|
|
# Digital Data Configuration File (Template Date: 29.07.2016) #
|
|
# UTF-8 Coding required! #
|
|
# incl. FailSafe functions that are active when information is missing. #
|
|
####################################################################################################
|
|
|
|
#==================================================================================================#
|
|
########################################## General Setup ###########################################
|
|
#==================================================================================================#
|
|
|
|
####################################################################################################
|
|
# Path in which the log files will be stored. #
|
|
# Example: E:\LogFiles\<ScriptName> #
|
|
# FailSafe Setting is: <ScriptPath> #
|
|
####################################################################################################
|
|
LogPath =
|
|
|
|
####################################################################################################
|
|
# Numerical value how long (in days) log files will be kept. #
|
|
# Value of 0 disables the delete function completely. #
|
|
# FailSafe Setting is: 60 #
|
|
####################################################################################################
|
|
LogFileKeepTime = 30
|
|
|
|
####################################################################################################
|
|
# Special characters which is used to separate file versions. #
|
|
# Example: File_4711_1606~2.pdf #
|
|
####################################################################################################
|
|
VersionSeperator = ~
|
|
|
|
####################################################################################################
|
|
# Numerical value how old (in minutes) must be a File to be processed. #
|
|
# Example: 1 #
|
|
# FailSafe Setting is: 5 #
|
|
####################################################################################################
|
|
FileDelayAge = 0
|
|
|
|
####################################################################################################
|
|
# Numeric Value for attempts to process locked files. #
|
|
# Example: 10000000 #
|
|
# FailSafe Setting is: 1000 #
|
|
####################################################################################################
|
|
FileCheckCounterLimit = 1000
|
|
|
|
#==================================================================================================#
|
|
########################################## Profile Setup ###########################################
|
|
#==================================================================================================#
|
|
|
|
####################################################################################################
|
|
# Define up to 99 MoveOrCopy Profiles in this config file for the executing Script. #
|
|
# Syntax: #
|
|
# MOCF_Profile = move|copy ; *.<FileType>, ; <SourcePath> ; true|false ; writetest|readtest ; #
|
|
# <DestinationPath> #
|
|
# Example: #
|
|
# MOCF_Profile = move ; *.* ; E:\SourcePath ; true ; writetest ; E:\DestinationPath #
|
|
#--------------------------------------------------------------------------------------------------#
|
|
# Special Parameter: 3 - <SourcePath> #
|
|
# -> Instead of the SourcePath you can write "%ProcessOnlyLastProfileFiles". #
|
|
# If you do so, the files from the last Profile run will be processed by the current Profile. #
|
|
# Because of this the set up FileType will be ignored! #
|
|
# MOCF_Profile = move ; *.* ; %ProcessOnlyLastProfileFiles ; E:\DestinationPath #
|
|
# #
|
|
# Fourth Parameter: <ReclusiveSwitch> #
|
|
# Determine if the SourcePath should be searched only in the main dir or even in every subfolder. #
|
|
# Example: True --Search in every Subfolder under the specified Sourcefolder. #
|
|
# Example: False --Search only in the specified Sourcefolder. #
|
|
# #
|
|
# Fifth Parameter: <filechecktyp> #
|
|
# Determine if the SourceFile should be check only for readstate or read- and writestate. #
|
|
# Remember, writetest could fail with some filetypes like pdfA or encrypted zip files. #
|
|
# Example: writetest --Test File before processing if it is read and writeable. #
|
|
# Example: readtest --Test File before processing if it is readable. #
|
|
# #
|
|
# NOTE: #
|
|
# It is possible, to work with multiple Placeholders in the Sourcepath: #
|
|
# Runtime Variable = %Date% #
|
|
# File specific variables = %CreationTimeYear%, %CreationTimeMonth%, %CreationTimeDay%, #
|
|
# %LastAccessTimeYear%, %LastAccessTimeMonth%, %LastAccessTimeDay%, #
|
|
# %LastWriteTimeYear%, %LastWriteTimeMonth%, %LastWriteTimeDay% #
|
|
#--------------------------------------------------------------------------------------------------#
|
|
# Optional Parameter: %FileDelayAge<Minutes> #
|
|
# Numerical value how old (in minutes) must be a File to be processed. #
|
|
# If you not using this Parameter, Script will use FileDelayAge Setting from the general setting. #
|
|
# Example: #
|
|
# MOCF_Profile = move ; *.pdf ; E:\SourcePath ; E:\DestinationPath ; %FileDelayAge15 #
|
|
#--------------------------------------------------------------------------------------------------#
|
|
# Optional Parameter: %RegExGroup<GroupNumber> #
|
|
# Regular Expression with selects the definied GroupNumber. Group 1 to 9 are available. #
|
|
# Only defined RegEx Groups will be found, by this setting. Define Groups by using () in RegEx. #
|
|
# If RegEx setting is matching file(s), the DestinationPath will be added with the \<RegExResult> #
|
|
# Example: #
|
|
# MOCF_Profile = move ; *.pdf ; E:\SourcePath ; E:\DestinationPath ; #
|
|
# %RegExGroup1(?:%SCAN%&(DD-[a-zA-Z-]{1,})) #
|
|
#--------------------------------------------------------------------------------------------------#
|
|
# Optional Parameter: %Replace<OldValue>,<NewValue> #
|
|
# String which you can set to be replaced with an other String, or a blank Value. #
|
|
# Replace setting will affect even results from the RegEx setting. #
|
|
# Example: #
|
|
# MOCF_Profile = move ; *.pdf ; E:\SourcePath ; E:\DestinationPath ; %Replace%SCAN%&, #
|
|
#--------------------------------------------------------------------------------------------------#
|
|
# Argument call: #
|
|
# If you need to run the Script with dynamic Values, you can do so, by calling it with arguments. #
|
|
# Even the Special and Optional Parameters are available in this case. #
|
|
# Example: #
|
|
# powershell.exe -command "E:\MoveOrCopy.ps1 -argOperation copy -argFileTypes *.pdf #
|
|
# -argSourcePath E:\SourcePath -argDestinationPath E:\DestinationPath -argFileDelayAge 15" #
|
|
####################################################################################################
|
|
|
|
MOCF_Profile = copy; *.* ; E:\Testordner\input ; true ; writetest ; E:\Testordner\output
|
|
|
|
#MOCF_Profile = copy; *.pdf ; E:\Testordner\input ; true ; writetest ; E:\Testordner\output
|
|
#MOCF_Profile = copy; *.pdf ; %ProcessOnlyLastProfileFiles ; true ; writetest ; E:\Testordner\output ; %FileDelayAge5
|
|
#MOCF_Profile = copy; *.pdf ; E:\Testordner\input ; true ; writetest ; E:\Testordner\output ; %FileDelayAge15 ; %RegExGroup1(?:%SCAN%&(DD-[a-zA-Z-]{1,})) ; %Replace%SCAN%&, |