Anlage des Repos
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
04.10.2017-15:58:47:
|
||||
04.10.2017-15:58:47: ********************************************************************************
|
||||
04.10.2017-15:58:47: Program Startup: Rename-ItemByDBValue on DD-PC-STD01,
|
||||
04.10.2017-15:58:47: from Account DIGITALDATA\KammM.
|
||||
04.10.2017-15:58:47: ********************************************************************************
|
||||
04.10.2017-15:58:47:
|
||||
04.10.2017-15:58:47: --------------------------------------------------------------------------------
|
||||
04.10.2017-15:58:47: Checking for old LogFiles.
|
||||
04.10.2017-15:58:47: --------------------------------------------------------------------------------
|
||||
04.10.2017-15:58:47: Files should be removed which are older than 3 Day(s).
|
||||
04.10.2017-15:58:47: Found no old Files.
|
||||
04.10.2017-15:58:47:
|
||||
04.10.2017-15:58:47: ********************************************************************************
|
||||
04.10.2017-15:58:48: Program Completed: Rename-ItemByDBValue on DD-PC-STD01,
|
||||
04.10.2017-15:58:48: from Account DIGITALDATA\KammM.
|
||||
04.10.2017-15:58:48: ********************************************************************************
|
||||
@@ -0,0 +1,16 @@
|
||||
04.10.2017-16:01:13:
|
||||
04.10.2017-16:01:13: ********************************************************************************
|
||||
04.10.2017-16:01:13: Program Startup: Rename-ItemByDBValue on DD-PC-STD01,
|
||||
04.10.2017-16:01:13: from Account DIGITALDATA\KammM.
|
||||
04.10.2017-16:01:14: ********************************************************************************
|
||||
04.10.2017-16:01:14:
|
||||
04.10.2017-16:01:14: --------------------------------------------------------------------------------
|
||||
04.10.2017-16:01:14: Checking for old LogFiles.
|
||||
04.10.2017-16:01:14: --------------------------------------------------------------------------------
|
||||
04.10.2017-16:01:14: Files should be removed which are older than 3 Day(s).
|
||||
04.10.2017-16:01:14: Found no old Files.
|
||||
04.10.2017-16:01:14:
|
||||
04.10.2017-16:01:14: ********************************************************************************
|
||||
04.10.2017-16:01:14: Program Completed: Rename-ItemByDBValue on DD-PC-STD01,
|
||||
04.10.2017-16:01:14: from Account DIGITALDATA\KammM.
|
||||
04.10.2017-16:01:14: ********************************************************************************
|
||||
@@ -0,0 +1,16 @@
|
||||
04.10.2017-16:04:07:
|
||||
04.10.2017-16:04:07: ********************************************************************************
|
||||
04.10.2017-16:04:07: Program Startup: Rename-ItemByDBValue on DD-PC-STD01,
|
||||
04.10.2017-16:04:07: from Account DIGITALDATA\KammM.
|
||||
04.10.2017-16:04:07: ********************************************************************************
|
||||
04.10.2017-16:04:07:
|
||||
04.10.2017-16:04:07: --------------------------------------------------------------------------------
|
||||
04.10.2017-16:04:07: Checking for old LogFiles.
|
||||
04.10.2017-16:04:07: --------------------------------------------------------------------------------
|
||||
04.10.2017-16:04:07: Files should be removed which are older than 60 Day(s).
|
||||
04.10.2017-16:04:07: Found no old Files.
|
||||
04.10.2017-16:04:07:
|
||||
04.10.2017-16:04:07: ********************************************************************************
|
||||
04.10.2017-16:04:07: Program Completed: Rename-ItemByDBValue on DD-PC-STD01,
|
||||
04.10.2017-16:04:07: from Account DIGITALDATA\KammM.
|
||||
04.10.2017-16:04:07: ********************************************************************************
|
||||
@@ -0,0 +1,16 @@
|
||||
04.10.2017-16:06:49:
|
||||
04.10.2017-16:06:49: ********************************************************************************
|
||||
04.10.2017-16:06:49: Program Startup: Rename-ItemByDBValue on DD-PC-STD01,
|
||||
04.10.2017-16:06:49: from Account DIGITALDATA\KammM.
|
||||
04.10.2017-16:06:49: ********************************************************************************
|
||||
04.10.2017-16:06:49:
|
||||
04.10.2017-16:06:50: --------------------------------------------------------------------------------
|
||||
04.10.2017-16:06:50: Checking for old LogFiles.
|
||||
04.10.2017-16:06:50: --------------------------------------------------------------------------------
|
||||
04.10.2017-16:06:50: Files should be removed which are older than 60 Day(s).
|
||||
04.10.2017-16:06:50: Found no old Files.
|
||||
04.10.2017-16:06:50:
|
||||
04.10.2017-16:06:50: ********************************************************************************
|
||||
04.10.2017-16:06:50: Program Completed: Rename-ItemByDBValue on DD-PC-STD01,
|
||||
04.10.2017-16:06:50: from Account DIGITALDATA\KammM.
|
||||
04.10.2017-16:06:50: ********************************************************************************
|
||||
@@ -0,0 +1,16 @@
|
||||
04.10.2017-16:10:06:
|
||||
04.10.2017-16:10:06: ********************************************************************************
|
||||
04.10.2017-16:10:06: Program Startup: Rename-ItemByDBValue on DD-PC-STD01,
|
||||
04.10.2017-16:10:06: from Account DIGITALDATA\KammM.
|
||||
04.10.2017-16:10:06: ********************************************************************************
|
||||
04.10.2017-16:10:06:
|
||||
04.10.2017-16:10:06: --------------------------------------------------------------------------------
|
||||
04.10.2017-16:10:06: Checking for old LogFiles.
|
||||
04.10.2017-16:10:06: --------------------------------------------------------------------------------
|
||||
04.10.2017-16:10:06: Files should be removed which are older than 60 Day(s).
|
||||
04.10.2017-16:10:06: Found no old Files.
|
||||
04.10.2017-16:10:06:
|
||||
04.10.2017-16:10:06: ********************************************************************************
|
||||
04.10.2017-16:10:06: Program Completed: Rename-ItemByDBValue on DD-PC-STD01,
|
||||
04.10.2017-16:10:06: from Account DIGITALDATA\KammM.
|
||||
04.10.2017-16:10:06: ********************************************************************************
|
||||
@@ -0,0 +1,16 @@
|
||||
04.10.2017-16:10:19:
|
||||
04.10.2017-16:10:19: ********************************************************************************
|
||||
04.10.2017-16:10:19: Program Startup: Rename-ItemByDBValue on DD-PC-STD01,
|
||||
04.10.2017-16:10:19: from Account DIGITALDATA\KammM.
|
||||
04.10.2017-16:10:19: ********************************************************************************
|
||||
04.10.2017-16:10:19:
|
||||
04.10.2017-16:10:19: --------------------------------------------------------------------------------
|
||||
04.10.2017-16:10:19: Checking for old LogFiles.
|
||||
04.10.2017-16:10:19: --------------------------------------------------------------------------------
|
||||
04.10.2017-16:10:19: Files should be removed which are older than 60 Day(s).
|
||||
04.10.2017-16:10:19: Found no old Files.
|
||||
04.10.2017-16:10:19:
|
||||
04.10.2017-16:10:19: ********************************************************************************
|
||||
04.10.2017-16:10:19: Program Completed: Rename-ItemByDBValue on DD-PC-STD01,
|
||||
04.10.2017-16:10:19: from Account DIGITALDATA\KammM.
|
||||
04.10.2017-16:10:20: ********************************************************************************
|
||||
@@ -0,0 +1,16 @@
|
||||
04.10.2017-16:11:59:
|
||||
04.10.2017-16:11:59: ********************************************************************************
|
||||
04.10.2017-16:11:59: Program Startup: Rename-ItemByDBValue on DD-PC-STD01,
|
||||
04.10.2017-16:11:59: from Account DIGITALDATA\KammM.
|
||||
04.10.2017-16:12:00: ********************************************************************************
|
||||
04.10.2017-16:12:00:
|
||||
04.10.2017-16:12:00: --------------------------------------------------------------------------------
|
||||
04.10.2017-16:12:00: Checking for old LogFiles.
|
||||
04.10.2017-16:12:00: --------------------------------------------------------------------------------
|
||||
04.10.2017-16:12:00: Files should be removed which are older than 60 Day(s).
|
||||
04.10.2017-16:12:00: Found no old Files.
|
||||
04.10.2017-16:12:00:
|
||||
04.10.2017-16:12:00: ********************************************************************************
|
||||
04.10.2017-16:12:00: Program Completed: Rename-ItemByDBValue on DD-PC-STD01,
|
||||
04.10.2017-16:12:00: from Account DIGITALDATA\KammM.
|
||||
04.10.2017-16:12:00: ********************************************************************************
|
||||
BIN
current/Rename-ItemByDBValue/Rename-ItemByDBValue.ps1
Normal file
BIN
current/Rename-ItemByDBValue/Rename-ItemByDBValue.ps1
Normal file
Binary file not shown.
45
current/Rename-ItemByDBValue/Rename-ItemByDBValue_Caller.cmd
Normal file
45
current/Rename-ItemByDBValue/Rename-ItemByDBValue_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,14 @@
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
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
|
||||
-------------------------------------------------------------------------------
|
||||
137
current/Rename-ItemByDBValue/Rename-ItemByDBValue_Settings.ini
Normal file
137
current/Rename-ItemByDBValue/Rename-ItemByDBValue_Settings.ini
Normal 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%
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user