The complete folder structure has been changed or updated
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
BIN
current/DD-Core/Remove-ItemByAge/Remove-ItemByAge.ps1
Normal file
BIN
current/DD-Core/Remove-ItemByAge/Remove-ItemByAge.ps1
Normal file
Binary file not shown.
45
current/DD-Core/Remove-ItemByAge/Remove-ItemByAge_Caller.cmd
Normal file
45
current/DD-Core/Remove-ItemByAge/Remove-ItemByAge_Caller.cmd
Normal 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
|
||||
@@ -0,0 +1,31 @@
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Version 1.1.0.1 - 18.08.2025
|
||||
NEW: -
|
||||
FIX: -
|
||||
CHG: - Script accepts only one config file now
|
||||
REM: -
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
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
|
||||
-------------------------------------------------------------------------------
|
||||
Binary file not shown.
Reference in New Issue
Block a user