8
0

Anlage des Repos

This commit is contained in:
2024-01-24 16:42:38 +01:00
commit 38d6a271c4
1785 changed files with 3051496 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
-------------------------------------------------------------------------------
Version 1.0.0.0 - 20.03.2019
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
-------------------------------------------------------------------------------

View File

@@ -0,0 +1,82 @@
####################################################################################################
# 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>\Logs #
####################################################################################################
LogPath =
####################################################################################################
# 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 = 30
#==================================================================================================#
########################################## Profile Setup ###########################################
#==================================================================================================#
####################################################################################################
# Define Profiles in this config file for the executing Script. #
# Syntax: #
# Profile = <ProfileType>;<SourcePath>;<FileType>;<ReclusiveSwitch>;<DeleteItemsOlderThen> #
# Example: #
# Profile = E:\SourcePath ; *.log ; true ; 10minutes #
#--------------------------------------------------------------------------------------------------#
# First Parameter: <ProfileType> #
# Determine which kind of Objects should be processed. #
# By choosing Folders for deletion, only empty Folders will be deleted. #
# Example: FilesOnly #
# Example: FoldersOnly #
# Example: FilesAndFolders #
#--------------------------------------------------------------------------------------------------#
# Second Parameter: <SourcePath> #
# Give the Path to the files you want to process. #
# Example: E:\SourcePath #
#--------------------------------------------------------------------------------------------------#
# Third Parameter: <FileType> #
# Set the File extensions you want to search for, in the specified SourcePath. #
# Example: *.* --This means every File Extension. #
# Example: *.pdf --This means only Files with the Extension "pdf". #
#--------------------------------------------------------------------------------------------------#
# 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: <DeleteItemsOlderThen> #
# Define how old file must be, before deletion. Minutes, Hours, Days and Years are possible. #
# Example: 15minutes #
# Example: 5hours #
# Example: 3days #
# Example: 4years #
#--------------------------------------------------------------------------------------------------#
# 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 is currently not implement! #
####################################################################################################
Profile = FoldersOnly ; E:\KammM - Kopie ; *.* ; true; 5minutes
#Profile = FilesOnly ; E:\LogFiles\SomeApp ; *.log ; true ; 15minutes
#Profile = FoldersOnly ; E:\LogFiles\SomeApp ; *.log ; true ; 5hours
#Profile = FilesAndFolders ; E:\LogFiles\SomeApp ; *.log ; true ; 3days
#Profile = FilesAndFolders ; E:\LogFiles\SomeApp ; *.log ; true ; 4years

View File

@@ -0,0 +1,23 @@
-------------------------------------------------------------------------------
Version 1.1.0.0 - 24.03.2019
NEW: - Selectable FileSystem Attribute
- Add Argument call
FIX: -
CHG: - Code optimization for Item Array
REM: -
-------------------------------------------------------------------------------
Version 1.0.0.0 - 20.03.2019
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
-------------------------------------------------------------------------------

View File

@@ -0,0 +1,98 @@
####################################################################################################
# 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>\Logs #
####################################################################################################
LogPath =
####################################################################################################
# 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 = 30
#==================================================================================================#
########################################## Profile Setup ###########################################
#==================================================================================================#
####################################################################################################
# Define Profiles in this config file for the executing Script. #
# Syntax: #
# Profile = <ProfileType>;<SourcePath>;<FileType>;<ReclusiveSwitch>;<DeleteItemsOlderThen>; #
# <DeleteItemsFileSystemAttribute> #
# Example: #
# Profile = E:\SourcePath ; *.log ; true ; 10minutes ; LastWriteTime #
#--------------------------------------------------------------------------------------------------#
# First Parameter: <ProfileType> #
# Determine which kind of Objects should be processed. #
# By choosing Folders for deletion, ONLY EMPTY Folders will be deleted #
# (Hidden System Files will be ignored). #
# FailSafe Setting is: FoldersOnly #
# Example: FilesOnly #
# Example: FoldersOnly #
# Example: FilesAndFolders #
#--------------------------------------------------------------------------------------------------#
# Second Parameter: <SourcePath> #
# Give the Path to the files you want to process. #
# Example: E:\SourcePath #
#--------------------------------------------------------------------------------------------------#
# Third Parameter: <FileType> #
# Set the File extensions you want to search for, in the specified SourcePath. #
# Example: *.* --This means every File Extension. #
# Example: *.pdf --This means only Files with the Extension "pdf". #
#--------------------------------------------------------------------------------------------------#
# 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: <DeleteItemsOlderThen> #
# Define how old file/folder must be, before deletion. Minutes, Hours, Days and Years are possible.#
# Example: 15minutes #
# Example: 5hours #
# Example: 3days #
# Example: 4years #
#--------------------------------------------------------------------------------------------------#
# Sixth Parameter: <DeleteItemsFileSystemAttribute> #
# Define which FileSystem Attribut will be used in correspondence with the fifth Parameter. #
# FailSafe Setting is: LastWriteTime #
# Example: CreationTime #
# Example: LastAccessTime #
# Example: LastWriteTime #
#--------------------------------------------------------------------------------------------------#
# Argument call: #
# If you need to run the Script with dynamic Values, you can do so, by calling it with Arguments. #
# Configured Profiles in INI-File will be ignored! #
# The Arguments are the same as the Parameters in the configuration below. #
# Every Argument can be used by position or name. #
# Example: #
# Remove-ItemByAge.ps1 "FilesAndFolders" "E:\OldFiles" "*.*" "true" "1days" "CreationTime" #
# Example: #
# Remove-ItemByAge.ps1 -ProfileType "FilesAndFolders" -SourcePath "E:\OldFiles" -FileType "*.*" #
# -ReclusiveSwitch "true" -DeleteItemsOlderThen "1days" #
# -DeleteItemsFileSystemAttribute "CreationTime" #
####################################################################################################
Profile = FilesAndFolders ; E:\KammM - Kopie ; *.* ; true; 5minutes ; CreationTime
#Profile = FilesOnly ; E:\LogFiles\SomeApp ; *.log ; true ; 15minutes ; LastWriteTime
#Profile = FoldersOnly ; E:\LogFiles\SomeApp ; *.log ; true ; 5hours ; CreationTime
#Profile = FilesAndFolders ; E:\LogFiles\SomeApp ; *.log ; true ; 3days ; LastWriteTime
#Profile = FilesAndFolders ; E:\LogFiles\SomeApp ; *.log ; true ; 4years ; LastAccessTime

View File

@@ -0,0 +1,91 @@
@ECHO Off & SETLOCAL
CHCP 1252
TITLE DIGITAL DATA - AlteSicherungenEntfernen
ECHO Stapelverarbeitungsprogramm
ECHO Alte Sicherungen Entfernen
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
ECHO Letzte Aktualisierung: 11.04.2014
ECHO -
ECHO Programmstart am %date% um %time:~0,8% Uhr auf %computername%.
REM --------------------------------------------------------------
REM -------------------Definition der Variablen-------------------
REM --------------------------------------------------------------
SET SicherungsDateien=mrimg
REM Dateiendung der Sicherungsdateien.
SET SicherungsMethode=0
REM Wert 0 = SicherungsPfad ist ein lokales Laufwerk.
REM Wert 1 = SicherungsPfad ist ein Netzwerk Laufwerk.
SET SicherungsLaufwerk=S:
REM Laufwerksbuchstabe der verbunden werden soll z.B.: "S:".
SET SicherungsPfad=Macrium_Images
REM Lokaler oder Netzwerkpfad ohne Laufwerksbuchstaben.
SET LaufwerksBenutzer=
REM Anmeldenname für Netzwerkpfad <DOMÄNE\Benutzername>.
SET LaufwerksPasswort=
REM Passwort für oben stehenden Anmeldenamen (unverschlüsselt).
SET Aufbewahrungszeit=6
REM Anzahl wie viele Tage die Dateien behalten werden sollen.
REM --------------------------------------------------------------
IF %SicherungsMethode%==0 (ECHO Ein lokales Laufwerk wird verwendet.) && (GOTO Programm1)
IF %SicherungsMethode%==1 (ECHO Ein Netzwerk Laufwerk wird verwendet.)
ECHO -
ECHO Beginne Laufwerksmapping (CMD Befehl forfiles arbeitet nicht mit UNC Pfaden).
IF EXIST %SicherungsLaufwerk% (net use %SicherungsLaufwerk% /delete /yes)
net use %SicherungsLaufwerk% %SicherungsPfad% %LaufwerksPasswort% /user:%LaufwerksBenutzer%
:Programm1
REM --------------------------------------------------------------
REM --------------------Programm / Skript 1-----------------------
REM --------------------------------------------------------------
ECHO -
ECHO Folgende alte Datensicherungen wurden gefunden:
%windir%\System32\forfiles /P "%SicherungsLaufwerk%\%SicherungsPfad%" /M *.%SicherungsDateien% /S /D -%Aufbewahrungszeit%
IF %ERRORLEVEL% == 1 (ECHO Es existieren aktuell keine zu entfernenden Datensicherungen.) && (GOTO Abschlussarbeiten)
ECHO -
ECHO Entferne nun aufgelistete Datensicherungen.
%windir%\System32\forfiles /P "%SicherungsLaufwerk%\%SicherungsPfad%" /M *.%SicherungsDateien% /S /C "cmd /c if @isdir==FALSE del @file" /D -%Aufbewahrungszeit%
IF %ERRORLEVEL% == 0 (ECHO Datensicherungen wurden erfolgreich entfernt.)
IF %ERRORLEVEL% == 1 (ECHO Es ist ein Fehler waehrend der Abarbeitung aufgetreten.)
REM --------------------------------------------------------------
:Abschlussarbeiten
ECHO -
IF %SicherungsMethode%==0 (ECHO Ein lokales Laufwerk wurde verwendet.) && (GOTO exit)
IF %SicherungsMethode%==1 (ECHO Ein Netzwerk Laufwerk wurde verwendet.)
ECHO -
ECHO Laufwerksmapping wird wieder entfernt.
net use %SicherungsLaufwerk% /delete /yes
:exit
ECHO -
ECHO Alle Aufgaben wurden abgeschlossen.
ECHO Das Programm wird beendet.
CHCP 850
exit

View File

@@ -0,0 +1,56 @@
@ECHO OFF
CHCP 1252
TITLE DIGITAL DATA - Start-Skript
ECHO Stapelverarbeitungsprogramm
ECHO Start-Skript
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
ECHO Letzte Aktualisierung: 22.01.2014
ECHO -
ECHO Programmstart am %date% um %time:~0,8% Uhr auf %computername%.
REM --------------------------------------------------------------
REM -------------------Definition der Variablen-------------------
REM --------------------------------------------------------------
SET JobPfad1=D:\Programme\Digital Data\Skripts\AlteSicherungenEntfernen
SET JobExe1=AlteSicherungenEntfernen.cmd
SET LogPfad1=D:\Programme\Digital Data\Skripts\Logs
SET Aufbewahrungszeit=30
REM --------------------------------------------------------------
REM Schließe einstellige Stunden aus, indem diese mit einer vorgestellten "0" ergänzet werden (Bsp: wird aus 9 -> 09).
set hr=%time:~0,2%
if "%hr:~0,1%" equ " " set hr=0%hr:~1,1%
REM --------------------------------------------------------------
REM --------------------Programm / Skript 1-----------------------
REM --------------------------------------------------------------
ECHO -
ECHO Starte protokollierte Verarbeitung.
%windir%\system32\cmd.exe /c "%JobPfad1%\%JobExe1%" >>"%LogPfad1%"\%JobExe1%_%date:~-10,2%%date:~-7,2%%date:~-4,4%_%hr%%time:~-8,2%%time:~-5,2%%time:~-2,2%.log"
ECHO -
ECHO Entferne Log-Dateien die älter sind als %Aufbewahrungszeit% Tage aus Pfad: %LogPfad2%.
C:\Windows\System32\forfiles /P "%LogPfad1%" /M *.log /C "cmd /c if @isdir==FALSE del @file" /D -%Aufbewahrungszeit%
IF %ERRORLEVEL% == 1 (ECHO Es ist ein Fehler waehrend der Abarbeitung aufgetreten.) && (SET %ERRORLEVEL% = 0) && (ECHO Gegebenenfalls existieren keine zu entfernenden Dateien ?!)
REM --------------------------------------------------------------
:exit
ECHO -
ECHO Alle Aufgaben wurden abgeschlossen.
ECHO Das Programm wird beendet.
CHCP 850
exit

Binary file not shown.

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,23 @@
-------------------------------------------------------------------------------
Version 1.1.0.0 - 24.03.2019
NEW: - Selectable FileSystem Attribute
- Add Argument call
FIX: -
CHG: - Code optimization for Item Array
REM: -
-------------------------------------------------------------------------------
Version 1.0.0.0 - 20.03.2019
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
-------------------------------------------------------------------------------

View File

@@ -0,0 +1,98 @@
####################################################################################################
# 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>\Logs #
####################################################################################################
LogPath =
####################################################################################################
# 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 = 30
#==================================================================================================#
########################################## Profile Setup ###########################################
#==================================================================================================#
####################################################################################################
# Define Profiles in this config file for the executing Script. #
# Syntax: #
# Profile = <ProfileType>;<SourcePath>;<FileType>;<ReclusiveSwitch>;<DeleteItemsOlderThen>; #
# <DeleteItemsFileSystemAttribute> #
# Example: #
# Profile = E:\SourcePath ; *.log ; true ; 10minutes ; LastWriteTime #
#--------------------------------------------------------------------------------------------------#
# First Parameter: <ProfileType> #
# Determine which kind of Objects should be processed. #
# By choosing Folders for deletion, ONLY EMPTY Folders will be deleted #
# (Hidden System Files will be ignored). #
# FailSafe Setting is: FoldersOnly #
# Example: FilesOnly #
# Example: FoldersOnly #
# Example: FilesAndFolders #
#--------------------------------------------------------------------------------------------------#
# Second Parameter: <SourcePath> #
# Give the Path to the files you want to process. #
# Example: E:\SourcePath #
#--------------------------------------------------------------------------------------------------#
# Third Parameter: <FileType> #
# Set the File extensions you want to search for, in the specified SourcePath. #
# Example: *.* --This means every File Extension. #
# Example: *.pdf --This means only Files with the Extension "pdf". #
#--------------------------------------------------------------------------------------------------#
# 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: <DeleteItemsOlderThen> #
# Define how old file/folder must be, before deletion. Minutes, Hours, Days and Years are possible.#
# Example: 15minutes #
# Example: 5hours #
# Example: 3days #
# Example: 4years #
#--------------------------------------------------------------------------------------------------#
# Sixth Parameter: <DeleteItemsFileSystemAttribute> #
# Define which FileSystem Attribut will be used in correspondence with the fifth Parameter. #
# FailSafe Setting is: LastWriteTime #
# Example: CreationTime #
# Example: LastAccessTime #
# Example: LastWriteTime #
#--------------------------------------------------------------------------------------------------#
# Argument call: #
# If you need to run the Script with dynamic Values, you can do so, by calling it with Arguments. #
# Configured Profiles in INI-File will be ignored! #
# The Arguments are the same as the Parameters in the configuration below. #
# Every Argument can be used by position or name. #
# Example: #
# Remove-ItemByAge.ps1 "FilesAndFolders" "E:\OldFiles" "*.*" "true" "1days" "CreationTime" #
# Example: #
# Remove-ItemByAge.ps1 -ProfileType "FilesAndFolders" -SourcePath "E:\OldFiles" -FileType "*.*" #
# -ReclusiveSwitch "true" -DeleteItemsOlderThen "1days" #
# -DeleteItemsFileSystemAttribute "CreationTime" #
####################################################################################################
Profile = FilesAndFolders ; E:\KammM - Kopie ; *.* ; true; 5minutes ; CreationTime
#Profile = FilesOnly ; E:\LogFiles\SomeApp ; *.log ; true ; 15minutes ; LastWriteTime
#Profile = FoldersOnly ; E:\LogFiles\SomeApp ; *.log ; true ; 5hours ; CreationTime
#Profile = FilesAndFolders ; E:\LogFiles\SomeApp ; *.log ; true ; 3days ; LastWriteTime
#Profile = FilesAndFolders ; E:\LogFiles\SomeApp ; *.log ; true ; 4years ; LastAccessTime