8
0

The complete folder structure has been changed or updated

This commit is contained in:
2025-09-19 18:24:40 +02:00
parent 796473a8c9
commit 1f0d1613a5
216 changed files with 330971 additions and 809 deletions

View File

@@ -0,0 +1,137 @@
####################################################################################################
# Digital Data Configuration File (Template Date: 30.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 = e:\KammM\Logs
####################################################################################################
# Numerical value how long (in days) log files will be kept. ValidateRange is 0 - 1000 #
# Setting the Value to 0 disables this Function. #
# FailSafe Setting is: 60 #
####################################################################################################
LogFileKeepTime = 3
####################################################################################################
# Special characters which is used to separate file versions. #
# Example: File_4711_1606~2.pdf #
# FailSafe Setting is: ~ #
####################################################################################################
VersionSeperator = ~
####################################################################################################
# Numerical value how long (in Minutes) a File has to be there, before processing it. #
# FailSafe Setting is: 5 #
####################################################################################################
FileDelayAge = 1
#==================================================================================================#
######################################## Database settings ########################################
#==================================================================================================#
####################################################################################################
# Name or IP-Adress of the Database Server. #
# Example: 192.168.0.1 #
# Example: 192.168.0.1\<SQLInstance> #
####################################################################################################
DBSQLConnectServer = 172.24.12.41\tests
####################################################################################################
# UserName for the SQL Connection. #
# This Setting is not neccessary if DBSQLConnectIntegratedSecurity is set to "true". #
# Example: sa #
####################################################################################################
DBSQLConnectUserName = sa
####################################################################################################
# Password for the specified UserName you set before. #
# This Setting is not neccessary if DBSQLConnectIntegratedSecurity is set to "true". #
####################################################################################################
DBSQLConnectUserPassword = dd
####################################################################################################
# Set the Database Name which exists on the Database Server. #
# Example: windream60 #
####################################################################################################
DBSQLConnectDatabase = windream60
####################################################################################################
# Set this to "True" if the Windows Login credentials should be used of Database Login. #
# In this case DBSQLConnectUserName and DBSQLConnectUserPassword setting will be ignored! #
# Example: True #
# Example: False #
####################################################################################################
DBSQLConnectIntegratedSecurity = false
#==================================================================================================#
#################################### Directory and rule settings ###################################
#==================================================================================================#
####################################################################################################
# Give the Path and FullName of the Allocation File, #
# which includes the relations between the Database returns and the new file Names. #
# Example: AllocationFile = E:\mime.cfg #
####################################################################################################
AllocationFile = \\dd-sto01\DD-STO01-A2\UserObjects\UserFiles\KammM\Desktop\mime.cfg
#==================================================================================================#
########################################## Profile Setup ###########################################
#==================================================================================================#
####################################################################################################
# Define Profiles in this config file for the executing Script. #
# Syntax: #
# Profile = <SourcePath> ; <FileType> ; <ReclusiveSwitch> ; <FileConstructor> ; <SQLQuery> #
# Example: #
# Profile = E:\dir;*.*;Extension;true;select szLongName from Table where dwdocid LIKE %filename% #
#--------------------------------------------------------------------------------------------------#
# First Parameter: <SourcePath> #
# Give the Path to the files you want to process. #
# Example: E:\dir #
#--------------------------------------------------------------------------------------------------#
# Second Paramenter: <FileType> #
# Set the File extensions you want to search for, in the specified SourcePath. #
# Example: *.* --This means every File Extension. #
#--------------------------------------------------------------------------------------------------#
# Third Paramenter: <ReclusiveSwitch> #
# Determ 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. #
#--------------------------------------------------------------------------------------------------#
# Fourth Paramenter: <FileConstructor> #
# The FileConstructor Parameter let you determ, how the new File name will be generated. #
# Example: prefix --FileName will be in prefix modified. File Extension will be kept. #
# Example: complete --The complete Filename including the File Extension will be renamend. #
# Example: suffix --FileName will be in suffix modified. File Extension will be kept. #
# Example: Extension --Only the File Extension will be renamed. #
#--------------------------------------------------------------------------------------------------#
# Fifth Paramenter: <SQLQuery> #
# Set the SQL Query which returns the correct File Name or the reference for the AllocationFile. #
# In the SQL Statement, you can use these variables: #
# %filename% = Current file Name incl. Extension, excl. Path. #
# %username% = Current Username from Windows Session. #
# %SourcePath% = Current Path in which File is stored. #
# Example: select szLongName from Table where dwdocid LIKE %filename% #
#--------------------------------------------------------------------------------------------------#
# 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: #
# This Function currently not implement! #
####################################################################################################
Profile = E:\KammM\test ; *.* ; true ; Extension ; select szLongName from baseattributes where dwdocid LIKE %filename%
#Profile = E:\KammM\test ; *.* ; true ; Extension ; select szLongName from baseattributes where dwdocid LIKE %filename%

View File

@@ -0,0 +1,45 @@
@ECHO OFF
TITLE DIGITAL DATA - Run all files in directory with current permissions
ECHO -
ECHO Batch Script
ECHO Run all files in directory with current permissions
ECHO -
ECHO Digital Data
ECHO Ludwig-Rinn-Strasse 16
ECHO 35452 Heuchelheim
ECHO Tel.: 0641 / 202360
ECHO E-Mail: info@didalog.de
ECHO -
ECHO Version 1.0.0.0
ECHO Date: 13.08.2015
ECHO -
ECHO Program Startup %date% at %time:~0,8% oclock, on %computername%.
REM --------------------------------------------------------------
REM ------------------------set variables-------------------------
REM --------------------------------------------------------------
setlocal enableextensions
SET DIRECTORY="%cd%"
SET FILEEXTENSION=*.ps1
SET COUNT=0
REM --------------------------------------------------------------
REM ---------------------Program 1 / Script 1---------------------
REM --------------------------------------------------------------
FOR /F "tokens=*" %%f in ('dir /S /b %FILEEXTENSION%') do (ECHO %%f && set /a count+=1)
ECHO -
ECHO Found %count% File(s) with File Extension %FILEEXTENSION% in Directory:
ECHO %DIRECTORY%.
ECHO -
ECHO Running this/them now, with your permissions!
FOR /F "tokens=*" %%f in ('dir /S /b %FILEEXTENSION%') do (PowerShell.exe -Command "& {Start-Process PowerShell.exe -WindowStyle hidden '-ExecutionPolicy Bypass -File "%%f"'}")
ECHO -
ECHO This Window will close in:
#timeout /T 10
endlocal
exit

View File

@@ -0,0 +1,21 @@
-------------------------------------------------------------------------------
Version 1.0.0.1 - 18.08.2025
NEW: -
FIX: -
CHG: - Script accepts only one config file now
REM: -
-------------------------------------------------------------------------------
Version 1.0.0.0 - 04.10.2017
NEW: -
FIX: -
CHG: -
REM: -
-------------------------------------legend------------------------------------
NEW: = Added a new functionality
FIX: = Fixed a Issue with existing functionality
CHG: = Changed a existing functionality
REM: = Removed a functionality
-------------------------------------------------------------------------------