Merge branch 'main' of http://git.dd:3000/AppStd/Skriptentwickung
This commit is contained in:
commit
81279e797c
31
.gitignore
vendored
Normal file
31
.gitignore
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
#Ignore thumbnails created by Windows
|
||||
Thumbs.db
|
||||
#Ignore files built by Visual Studio
|
||||
*.obj
|
||||
*.exe
|
||||
*.pdb
|
||||
*.user
|
||||
*.aps
|
||||
*.pch
|
||||
*.vspscc
|
||||
*_i.c
|
||||
*_p.c
|
||||
*.ncb
|
||||
*.suo
|
||||
*.tlb
|
||||
*.tlh
|
||||
*.bak
|
||||
*.cache
|
||||
*.ilk
|
||||
[Bb]in
|
||||
[Dd]ebug*/
|
||||
*.lib
|
||||
*.sbr
|
||||
obj/
|
||||
[Rr]elease*/
|
||||
_ReSharper*/
|
||||
[Tt]est[Rr]esult*
|
||||
.vs/
|
||||
#Nuget packages folder
|
||||
packages/
|
||||
*.log
|
||||
@ -1,3 +1,3 @@
|
||||
Hallo!
|
||||
Hallo Fremder!
|
||||
|
||||
Willkommen in der Ecke der Skriptentwicklung!
|
||||
Binary file not shown.
@ -0,0 +1,144 @@
|
||||
####################################################################################################
|
||||
# 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
|
||||
|
||||
####################################################################################################
|
||||
# Numerical value how long (in Minutes) a File has to be there, before processing it. #
|
||||
# FailSafe Setting is: 5 #
|
||||
####################################################################################################
|
||||
FileDelayAge = 1
|
||||
|
||||
#==================================================================================================#
|
||||
######################################## Database settings ########################################
|
||||
#==================================================================================================#
|
||||
|
||||
####################################################################################################
|
||||
# Set the type of database Server #
|
||||
# Example: MSSQL #
|
||||
####################################################################################################
|
||||
DBType = MSSQL
|
||||
|
||||
####################################################################################################
|
||||
# Set the database connection string. #
|
||||
# For help, visit https://www.connectionstrings.com/ #
|
||||
# IMPORTANT: mask ";" with a "\" = "\;" #
|
||||
# Example: "Data Source=SERVERNAME\INSTANCE\;Initial Catalog=DD_ECM\;Trusted_Connection=True\; #
|
||||
# TrustServerCertificate=true\;" #
|
||||
# Example: "Data Source=SERVERNAME\INSTANCE\;Initial Catalog=DD_ECM\;User Id=SQLUSERNAME\; #
|
||||
# Password=SQLPASSWORD\;TrustServerCertificate=true\;" #
|
||||
####################################################################################################
|
||||
#DBConnString = "Data Source=S-ZLSDMS-DB1\;Initial Catalog=DD_ECM\;Trusted_Connection=True\;TrustServerCertificate=true\;"
|
||||
DBConnString = "Data Source=SDD-VMP04-SQL17\DD_DEVELOP01\;Initial Catalog=DD_ECM\;Trusted_Connection=True\;TrustServerCertificate=true\;"
|
||||
|
||||
#==================================================================================================#
|
||||
########################################## Profile Setup ###########################################
|
||||
#==================================================================================================#
|
||||
|
||||
####################################################################################################
|
||||
# In the following section(s), it is possible to use multiple variables in File and Folder Paths, #
|
||||
# in SQL Statements as well and other data related specifications. #
|
||||
# #
|
||||
# <VariableName> = <ReplaceWithThisValue> #
|
||||
# %USERNAME% = The current User Name running this Script #
|
||||
# %USERDOMAIN% = The current Domain Name, User is logged on #
|
||||
# %COMPUTERNAME% = The Computername on which this Script is running #
|
||||
# %LOGONSERVER% = The currently connected Domain Controller #
|
||||
# %SCAN%& = Scan Tag for Batch scanning, will be replaced with - nothing #
|
||||
# %DATE% = Get Date in this Format: dd.MM.yyyy #
|
||||
# %TIMESTAMP1% = Get Date in this Format: ddMMyyyy #
|
||||
# %TIMESTAMP2% = Get Date and Time in this Format: ddMMyyyy_HHmmss #
|
||||
# %TIMESTAMP3% = Get Date and Time in this Format: ddMMyyyy_HHmmssffff #
|
||||
# %TIMESTAMP4% = Get Date and Time in this Format: yyyyMMdd HHmmssfff #
|
||||
# %TIMESTAMP5% = Get Date and Time in this Format: yyyyMMdd_HHmmss #
|
||||
# %TIMESTAMP6% = Get Date in this Format: dd.MM.yyyy #
|
||||
# %TIMESTAMP7% = Get Date and Time in this Format: dd.MM.yyyy_HH:mm:ss #
|
||||
# %TIMESTAMP8% = Get Date and Time in this Format: dd.MM.yyyy_HH:mm:ss.ffff #
|
||||
# %TIMESTAMP9% = Get Date and Time in this Format: yyyy/MM/dd HH:mm:ss.fff #
|
||||
# %TIMESTAMP10% = Get Date and Time in this Format: yyyy/MM/dd HH:mm:ss #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# Additional Variables specific for this Script are: #
|
||||
# %SourceFile% = Name of the processed File, including its Extension #
|
||||
# %SourceFilePath% = Directory of the processed File #
|
||||
# %SourceFileFullName% = Directory and Name of the processed File, including its Extension #
|
||||
# #
|
||||
# This dump table is matching with Function: "Update-ReplacePlaceholder-withLogging" #
|
||||
# Version Number: 1.0.0.0 / Version Date: 25.10.2018 #
|
||||
####################################################################################################
|
||||
|
||||
####################################################################################################
|
||||
# Define Profiles in this config file for the executing Script. #
|
||||
# Syntax: #
|
||||
# Profile = <ImportMethode> ; <ImportFormat> ; <SourcePath> ; <FirstLine> ; <LastLine> ; #
|
||||
# <ValueSeperator> ; <ArchivPath> ; <ErrorPath> #
|
||||
# Example: #
|
||||
# Profile = BulkImport ; e:\SourceFile.csv #
|
||||
# Profile = CheckSQLQuery ; SQL Statement (SELECT) #
|
||||
# Profile = InitialSQLQuery ; SQL Statement (SELECT, INSERT, UPDATE) #
|
||||
# Profile = PreparingSQLQuery ; SQL Statement (SELECT, INSERT, UPDATE) #
|
||||
# Profile = MainLoopSQLQuery ; SQL Statement (INSERT, UPDATE) #
|
||||
# Profile = FinalSQLQuery ; SQL Statement (SELECT, INSERT, UPDATE) #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# First Parameter: <ImportMethode> #
|
||||
# Set the way, Script is reading the SourceFile. #
|
||||
# Currently only the BulkImport is available. #
|
||||
# Example: BulkImport #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# Second Parameter: <SourceFile> #
|
||||
# Set the full path and name to the file which includes the list you want to Import. #
|
||||
# Make sure, file is .csv and value separation is done by ";". #
|
||||
# Example: E:\UserList.csv #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# Optional Parameter: %ImportPathAD=<OU=OUName>,<DC=DomainName>,<DC=DomainSuffix> #
|
||||
# Determ the TargetPath in your Active Directory (part of the distinguishedName). #
|
||||
# If you dont use this Parameter, TargetPath will be the "Users" Folder by default. #
|
||||
# Example: OU=Testuser,DC=domainname,DC=local #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# Optional Parameter: %ReportFile=<Path>\<FileName>.csv #
|
||||
# By setting this Parameter, you get a overview file, which includes every created User, #
|
||||
# with all available data (UserName, PreName, Surname, Password ...) #
|
||||
# Example: %ReportFile=E:\ReportFile.csv #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# 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 = CSVImport ; %CellValue% ; D:\ScriptFiles\Import-FileContentToDB\*.csv ; 4 ; 999999999 ; \^\,\^|\^ ; E:\archiv ; E:\error
|
||||
#Profile = ExcelImport ; %CellValue% ; D:\ScriptFiles\Import-FileContentToDB\Stammdaten.xlsx ; 4 ; 999999999 ; \^\,\^|\^ ; E:\archiv ; E:\error
|
||||
CheckSQL = SELECT 'true'
|
||||
InitialSQL =
|
||||
PreparingSQL = DELETE FROM [DD_ECM].[dbo].[TBCUST_XAP_KUNDENSTAMM_TEST]
|
||||
MainLoopSQL = INSERT INTO [DD_ECM_ZLS].[dbo].[TBCUST_XAP_DOC_EXPORT]([XAP_Beleg_ID],[XAP_Kunden_ID],[XAP_Kundenname],[XAP_Objekt_ID],[XAP_Objektbezeichnung],[XAP_Belegdatum],[XAP_Formular_ID],[XAP_Exportpfad],[ADDED_WHO],[ADDED_WHEN]) SELECT '%column1%','%column2%','%column3%','%column4%','%column5%','%column6%','%column7%','%column8%','DD',getdate()
|
||||
FinalSQL =
|
||||
|
||||
#Example:
|
||||
#Profile = CSVImport ; %ColumnName%|%CellValue% ; P:\Skriptentwickung\development\Import-CSV2DB\test-dateien\AltesFormat\*.txt ; 1 ; 2 ; . ;%SourceFilePath%\Archiv\%Timestamp5% ; %SourceFilePath%\Error
|
||||
#Profile = CheckSQLQuery = SELECT 'true'
|
||||
#Profile = InitialSQLQuery = SELECT (SELECT [u003] FROM [CWLDATEN].[dbo].[t693] WHERE [u000] = 1)+1
|
||||
#Profile = PreparingSQLQuery = INSERT INTO [CWLDATEN].[dbo].[TBDD_BATCHIMPORT_HEAD] (BELEGKEY, Konto, Laufnummer, Auftragsnummer) VALUES (%InitialSQLResult%, '700131', NULL, NULL) UPDATE [CWLDATEN].[dbo].[t693] SET u003 = %InitialSQLResult% WHERE [u000] = 1
|
||||
#Profile = MainLoopSQLQuery = INSERT INTO [CWLDATEN].[dbo].[t699] (u000, u001, u002, u003, u004, u005, u006, u007, u008, u009, u010, u011, u012, u013, u014, u015, u016, u029, u030) Select ISNULL(MAX(u000),0) + 1, %InitialSQLResult%, '%sourcefile%', '%column3%', '%column1%', '%column2%', '%column3%', '%column4%', '%column5%', '%column6%', '%column7%', '%column8%', '%column9%', '%column10%', '%column11%', '%column12%', '%column13%', getdate(), '%username%' FROM [CWLDATEN].[dbo].[t699]
|
||||
#Profile = FinalSQLQuery =
|
||||
|
||||
|
||||
@ -33,38 +33,22 @@ FileDelayAge = 1
|
||||
#==================================================================================================#
|
||||
|
||||
####################################################################################################
|
||||
# Name or IP-Adress of the Database Server. #
|
||||
# Example: 192.168.0.1 #
|
||||
# Example: 192.168.0.1\<SQLInstance> #
|
||||
# Set the type of database Server #
|
||||
# Example: MSSQL #
|
||||
####################################################################################################
|
||||
DBSQLConnectServer = 172.24.12.41\tests
|
||||
DBType = MSSQL
|
||||
|
||||
####################################################################################################
|
||||
# UserName for the SQL Connection. #
|
||||
# This Setting is not neccessary if DBSQLConnectIntegratedSecurity is set to "true". #
|
||||
# Example: sa #
|
||||
# Set the database connection string. #
|
||||
# For help, visit https://www.connectionstrings.com/ #
|
||||
# IMPORTANT: mask ";" with a "\" = "\;" #
|
||||
# Example: "Data Source=SERVERNAME\INSTANCE\;Initial Catalog=DD_ECM\;Trusted_Connection=True\; #
|
||||
# TrustServerCertificate=true\;" #
|
||||
# Example: "Data Source=SERVERNAME\INSTANCE\;Initial Catalog=DD_ECM\;User Id=SQLUSERNAME\; #
|
||||
# Password=SQLPASSWORD\;TrustServerCertificate=true\;" #
|
||||
####################################################################################################
|
||||
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 = DD_ECM_WISAG
|
||||
|
||||
####################################################################################################
|
||||
# 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
|
||||
#DBConnString = "Data Source=S-ZLSDMS-DB1\;Initial Catalog=DD_ECM\;Trusted_Connection=True\;TrustServerCertificate=true\;"
|
||||
DBConnString = "Data Source=SDD-VMP04-SQL17\DD_DEVELOP01\;Initial Catalog=DD_ECM\;Trusted_Connection=True\;TrustServerCertificate=true\;"
|
||||
|
||||
#==================================================================================================#
|
||||
########################################## Profile Setup ###########################################
|
||||
@ -108,11 +92,11 @@ DBSQLConnectIntegratedSecurity = false
|
||||
# <ValueSeperator> ; <ArchivPath> ; <ErrorPath> #
|
||||
# Example: #
|
||||
# Profile = BulkImport ; e:\SourceFile.csv #
|
||||
# Profile_CheckSQLQuery = SQL Statements (SELECT)
|
||||
# Profile_InitialSQLQuery = SQL Statements (SELECT, INSERT, UPDATE)
|
||||
# Profile_PreparingSQLQuery = SQL Statements (SELECT, INSERT, UPDATE)
|
||||
# Profile_MainLoopSQLQuery = SQL Statements (INSERT, UPDATE)
|
||||
# Profile_FinalSQLQuery = SQL Statements (SELECT, INSERT, UPDATE)
|
||||
# Profile = CheckSQLQuery ; SQL Statement (SELECT) #
|
||||
# Profile = InitialSQLQuery ; SQL Statement (SELECT, INSERT, UPDATE) #
|
||||
# Profile = PreparingSQLQuery ; SQL Statement (SELECT, INSERT, UPDATE) #
|
||||
# Profile = MainLoopSQLQuery ; SQL Statement (INSERT, UPDATE) #
|
||||
# Profile = FinalSQLQuery ; SQL Statement (SELECT, INSERT, UPDATE) #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# First Parameter: <ImportMethode> #
|
||||
# Set the way, Script is reading the SourceFile. #
|
||||
@ -140,25 +124,21 @@ DBSQLConnectIntegratedSecurity = false
|
||||
# Example: #
|
||||
# This Function is currently not implement! #
|
||||
####################################################################################################
|
||||
#%ColumnName%|
|
||||
Profile = BulkImport ; %CellValue% ; P:\Skriptentwickung\development\Import-FileContent2Database\wisag_test-dateien\AVIAFAK_LFB1.DAT ; 1 ; max ; .
|
||||
#;%SourceFilePath%\Archiv\%Timestamp5% ; %SourceFilePath%\Error
|
||||
Profile_CheckSQLQuery = SELECT 'true'
|
||||
Profile_InitialSQLQuery =
|
||||
Profile_PreparingSQLQuery =
|
||||
Profile_MainLoopSQLQuery = INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select '%column1%', '%column2%', '%column3%', '%column4%', '%column5%', '%column6%'
|
||||
Profile_FinalSQLQuery =
|
||||
|
||||
Profile = CSVImport ; %CellValue% ; D:\ScriptFiles\Import-FileContentToDB\*.csv ; 4 ; 999999999 ; \^\,\^|\^ ; E:\archiv ; E:\error
|
||||
#Profile = ExcelImport ; %CellValue% ; D:\ScriptFiles\Import-FileContentToDB\Stammdaten.xlsx ; 4 ; 999999999 ; \^\,\^|\^ ; E:\archiv ; E:\error
|
||||
CheckSQL = SELECT 'true'
|
||||
InitialSQL =
|
||||
PreparingSQL = DELETE FROM [DD_ECM].[dbo].[TBCUST_XAP_KUNDENSTAMM_TEST]
|
||||
MainLoopSQL = INSERT INTO [DD_ECM_ZLS].[dbo].[TBCUST_XAP_DOC_EXPORT]([XAP_Beleg_ID],[XAP_Kunden_ID],[XAP_Kundenname],[XAP_Objekt_ID],[XAP_Objektbezeichnung],[XAP_Belegdatum],[XAP_Formular_ID],[XAP_Exportpfad],[ADDED_WHO],[ADDED_WHEN]) SELECT '%column1%','%column2%','%column3%','%column4%','%column5%','%column6%','%column7%','%column8%','DD',getdate()
|
||||
FinalSQL =
|
||||
|
||||
#Example:
|
||||
#Profile = BulkImport ; %ColumnName%|%CellValue% ; P:\Skriptentwickung\development\Import-CSV2DB\test-dateien\AltesFormat\*.txt ; 1 ; 2 ; . ;%SourceFilePath%\Archiv\%Timestamp5% ; %SourceFilePath%\Error
|
||||
#Profile_CheckSQLQuery = SELECT 'true'
|
||||
#Profile_InitialSQLQuery = SELECT (SELECT [u003] FROM [CWLDATEN].[dbo].[t693] WHERE [u000] = 1)+1
|
||||
#Profile_PreparingSQLQuery = INSERT INTO [CWLDATEN].[dbo].[TBDD_BATCHIMPORT_HEAD] (BELEGKEY, Konto, Laufnummer, Auftragsnummer) VALUES (%InitialSQLResult%, '700131', NULL, NULL) UPDATE [CWLDATEN].[dbo].[t693] SET u003 = %InitialSQLResult% WHERE [u000] = 1
|
||||
#Profile_MainLoopSQLQuery = INSERT INTO [CWLDATEN].[dbo].[t699] (u000, u001, u002, u003, u004, u005, u006, u007, u008, u009, u010, u011, u012, u013, u014, u015, u016, u029, u030) Select ISNULL(MAX(u000),0) + 1, %InitialSQLResult%, '%sourcefile%', '%column3%', '%column1%', '%column2%', '%column3%', '%column4%', '%column5%', '%column6%', '%column7%', '%column8%', '%column9%', '%column10%', '%column11%', '%column12%', '%column13%', getdate(), '%username%' FROM [CWLDATEN].[dbo].[t699]
|
||||
#Profile_FinalSQLQuery =
|
||||
|
||||
|
||||
|
||||
|
||||
#Profile = CSVImport ; %ColumnName%|%CellValue% ; P:\Skriptentwickung\development\Import-CSV2DB\test-dateien\AltesFormat\*.txt ; 1 ; 2 ; . ;%SourceFilePath%\Archiv\%Timestamp5% ; %SourceFilePath%\Error
|
||||
#Profile = CheckSQLQuery = SELECT 'true'
|
||||
#Profile = InitialSQLQuery = SELECT (SELECT [u003] FROM [CWLDATEN].[dbo].[t693] WHERE [u000] = 1)+1
|
||||
#Profile = PreparingSQLQuery = INSERT INTO [CWLDATEN].[dbo].[TBDD_BATCHIMPORT_HEAD] (BELEGKEY, Konto, Laufnummer, Auftragsnummer) VALUES (%InitialSQLResult%, '700131', NULL, NULL) UPDATE [CWLDATEN].[dbo].[t693] SET u003 = %InitialSQLResult% WHERE [u000] = 1
|
||||
#Profile = MainLoopSQLQuery = INSERT INTO [CWLDATEN].[dbo].[t699] (u000, u001, u002, u003, u004, u005, u006, u007, u008, u009, u010, u011, u012, u013, u014, u015, u016, u029, u030) Select ISNULL(MAX(u000),0) + 1, %InitialSQLResult%, '%sourcefile%', '%column3%', '%column1%', '%column2%', '%column3%', '%column4%', '%column5%', '%column6%', '%column7%', '%column8%', '%column9%', '%column10%', '%column11%', '%column12%', '%column13%', getdate(), '%username%' FROM [CWLDATEN].[dbo].[t699]
|
||||
#Profile = FinalSQLQuery =
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
@ -1,376 +0,0 @@
|
||||
18.04.2019-14:54:19:
|
||||
18.04.2019-14:54:19: ********************************************************************************
|
||||
18.04.2019-14:54:19: Program Startup: Import-FileContent2Database on DD-PC-STD01,
|
||||
18.04.2019-14:54:19: from Account DIGITALDATA\KammM.
|
||||
18.04.2019-14:54:19: ********************************************************************************
|
||||
18.04.2019-14:54:19:
|
||||
18.04.2019-14:54:19: Found 1 Profile(s) to process.
|
||||
18.04.2019-14:54:19:
|
||||
18.04.2019-14:54:19: --------------------------------------------------------------------------------
|
||||
18.04.2019-14:54:19: This is Profile: 1 of 1
|
||||
18.04.2019-14:54:19: --------------------------------------------------------------------------------
|
||||
18.04.2019-14:54:19: Configured ImportMethode is: BulkImport
|
||||
18.04.2019-14:54:19: Configured ImportFormat is: %ColumnName%|%CellValue%
|
||||
18.04.2019-14:54:19: Configured SourcePath is: P:\Skriptentwickung\development\Import-FileContent2Database\wisag_test-dateien\AVIAFAK_LFB1.DAT
|
||||
18.04.2019-14:54:19: Configured SourceFileStartLine is: 0
|
||||
18.04.2019-14:54:19: Configured SourceFileEndLine is: 1
|
||||
18.04.2019-14:54:19:
|
||||
18.04.2019-14:54:19: Replace Function gets this String: .
|
||||
18.04.2019-14:54:19: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:19: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:19: Removed SpecialCharacters in: .
|
||||
18.04.2019-14:54:19: Replace Function returns this String: .
|
||||
18.04.2019-14:54:19: Configured ArchivPath is:
|
||||
18.04.2019-14:54:20: Configured CheckSQLQuery is: SELECT 'true'
|
||||
|
||||
18.04.2019-14:54:20: Configured InitialSQLQuery is:
|
||||
|
||||
18.04.2019-14:54:20: Configured PreparingSQLQuery is:
|
||||
|
||||
18.04.2019-14:54:20: Configured MainLoopSQLQuery is: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select '%column1%', '%column2%', '%column3%', '%column4%', '%column5%', '%column6%'
|
||||
|
||||
18.04.2019-14:54:20: Configured FinalSQLQuery is:
|
||||
|
||||
18.04.2019-14:54:20:
|
||||
18.04.2019-14:54:20: Replace Function gets this String: P:\Skriptentwickung\development\Import-FileContent2Database\wisag_test-dateien\AVIAFAK_LFB1.DAT
|
||||
18.04.2019-14:54:20: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:20: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:20: Removed SpecialCharacters in: P:\Skriptentwickung\development\Import-FileContent2Database\wisag_test-dateien\AVIAFAK_LFB1.DAT
|
||||
18.04.2019-14:54:20: Replace Function returns this String: P:\Skriptentwickung\development\Import-FileContent2Database\wisag_test-dateien\AVIAFAK_LFB1.DAT
|
||||
18.04.2019-14:54:20:
|
||||
18.04.2019-14:54:20: Found 1 File(s) in SourcePath.
|
||||
18.04.2019-14:54:20:
|
||||
18.04.2019-14:54:20: Checking if file: P:\Skriptentwickung\development\Import-FileContent2Database\wisag_test-dateien\AVIAFAK_LFB1.DAT is locked/readonly...
|
||||
18.04.2019-14:54:20: Checking if file: P:\Skriptentwickung\development\Import-FileContent2Database\wisag_test-dateien\AVIAFAK_LFB1.DAT is readable.
|
||||
18.04.2019-14:54:20: Checking if file: P:\Skriptentwickung\development\Import-FileContent2Database\wisag_test-dateien\AVIAFAK_LFB1.DAT is writeable.
|
||||
18.04.2019-14:54:20: File P:\Skriptentwickung\development\Import-FileContent2Database\wisag_test-dateien\AVIAFAK_LFB1.DAT checked with result: writeable
|
||||
18.04.2019-14:54:20: Trying to get content of P:\Skriptentwickung\development\Import-FileContent2Database\wisag_test-dateien\AVIAFAK_LFB1.DAT
|
||||
18.04.2019-14:54:20: Read 6 column(s) and
|
||||
18.04.2019-14:54:20: 1000 line(s) from the SourceFile.
|
||||
18.04.2019-14:54:20: Should read the SourceFile only until line 1.
|
||||
18.04.2019-14:54:20: File was read until line 1!
|
||||
18.04.2019-14:54:20:
|
||||
18.04.2019-14:54:20: Replace Function gets this String: SELECT 'true'
|
||||
|
||||
18.04.2019-14:54:20: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:20: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:20: Removed SpecialCharacters in: SELECT 'true'
|
||||
18.04.2019-14:54:20: Replace Function returns this String: SELECT 'true'
|
||||
18.04.2019-14:54:20:
|
||||
18.04.2019-14:54:21: Connecting with DB:
|
||||
18.04.2019-14:54:21: Server = 172.24.12.41\tests, uid=sa, pwd=<set in ConfigFile>, Database = DD_ECM_WISAG, Integrated Security = false
|
||||
18.04.2019-14:54:21: Processing SQL Query:
|
||||
18.04.2019-14:54:21: SELECT 'true'
|
||||
18.04.2019-14:54:21: SQL Query result with 1 row(s).
|
||||
18.04.2019-14:54:21: Missing 'Profile_InitialSQLQuery =' block in ConfigFile!
|
||||
18.04.2019-14:54:21: Missing 'Profile_PreparingSQLQuery =' block in ConfigFile!
|
||||
18.04.2019-14:54:21:
|
||||
18.04.2019-14:54:21: Starting processing for each line: Current 0 of 1000
|
||||
18.04.2019-14:54:21:
|
||||
18.04.2019-14:54:21: Starting processing for each column: Current 0 of 6
|
||||
18.04.2019-14:54:21:
|
||||
18.04.2019-14:54:21: Replace Function gets this String: %ColumnName%|%CellValue%
|
||||
18.04.2019-14:54:21: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:21: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:21: Removed SpecialCharacters in: LIFNR%CellValue%
|
||||
18.04.2019-14:54:21: Replace Function returns this String: LIFNR%CellValue%
|
||||
18.04.2019-14:54:21:
|
||||
18.04.2019-14:54:21: Replace Function gets this String: LIFNR%CellValue%
|
||||
18.04.2019-14:54:21: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:21: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:21: Removed SpecialCharacters in: LIFNR0007000001
|
||||
18.04.2019-14:54:21: Replace Function returns this String: LIFNR0007000001
|
||||
18.04.2019-14:54:21: Current value of line: 0, column number: 0 - column name: LIFNR
|
||||
18.04.2019-14:54:21: LIFNR0007000001
|
||||
18.04.2019-14:54:21: Valid Value found in this cell!
|
||||
18.04.2019-14:54:21:
|
||||
18.04.2019-14:54:21: Replace Function gets this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select '%column1%', '%column2%', '%column3%', '%column4%', '%column5%', '%column6%'
|
||||
|
||||
18.04.2019-14:54:21: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:21: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:21: Removed SpecialCharacters in: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', '%column2%', '%column3%', '%column4%', '%column5%', '%column6%'
|
||||
18.04.2019-14:54:21: Replace Function returns this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', '%column2%', '%column3%', '%column4%', '%column5%', '%column6%'
|
||||
18.04.2019-14:54:21:
|
||||
18.04.2019-14:54:21: Starting processing for each column: Current 1 of 6
|
||||
18.04.2019-14:54:21:
|
||||
18.04.2019-14:54:21: Replace Function gets this String: %ColumnName%|%CellValue%
|
||||
18.04.2019-14:54:21: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:21: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:21: Removed SpecialCharacters in: BUKRS%CellValue%
|
||||
18.04.2019-14:54:21: Replace Function returns this String: BUKRS%CellValue%
|
||||
18.04.2019-14:54:21:
|
||||
18.04.2019-14:54:21: Replace Function gets this String: BUKRS%CellValue%
|
||||
18.04.2019-14:54:21: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:21: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:21: Removed SpecialCharacters in: BUKRS0160
|
||||
18.04.2019-14:54:22: Replace Function returns this String: BUKRS0160
|
||||
18.04.2019-14:54:22: Current value of line: 0, column number: 1 - column name: BUKRS
|
||||
18.04.2019-14:54:22: BUKRS0160
|
||||
18.04.2019-14:54:22: Valid Value found in this cell!
|
||||
18.04.2019-14:54:22:
|
||||
18.04.2019-14:54:22: Replace Function gets this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', '%column2%', '%column3%', '%column4%', '%column5%', '%column6%'
|
||||
18.04.2019-14:54:22: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:22: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:22: Removed SpecialCharacters in: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0160', '%column3%', '%column4%', '%column5%', '%column6%'
|
||||
18.04.2019-14:54:22: Replace Function returns this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0160', '%column3%', '%column4%', '%column5%', '%column6%'
|
||||
18.04.2019-14:54:22:
|
||||
18.04.2019-14:54:22: Starting processing for each column: Current 2 of 6
|
||||
18.04.2019-14:54:22:
|
||||
18.04.2019-14:54:22: Replace Function gets this String: %ColumnName%|%CellValue%
|
||||
18.04.2019-14:54:22: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:22: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:22: Removed SpecialCharacters in: SPERR%CellValue%
|
||||
18.04.2019-14:54:22: Replace Function returns this String: SPERR%CellValue%
|
||||
18.04.2019-14:54:22: Current value of line: 0, column number: 2 - column name: SPERR
|
||||
18.04.2019-14:54:22: SPERR%CellValue%
|
||||
18.04.2019-14:54:22: No or invalid Value found in this cell!
|
||||
18.04.2019-14:54:22:
|
||||
18.04.2019-14:54:22: Starting processing for each column: Current 3 of 6
|
||||
18.04.2019-14:54:22:
|
||||
18.04.2019-14:54:22: Replace Function gets this String: %ColumnName%|%CellValue%
|
||||
18.04.2019-14:54:22: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:22: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:22: Removed SpecialCharacters in: AKONT%CellValue%
|
||||
18.04.2019-14:54:22: Replace Function returns this String: AKONT%CellValue%
|
||||
18.04.2019-14:54:22:
|
||||
18.04.2019-14:54:22: Replace Function gets this String: AKONT%CellValue%
|
||||
18.04.2019-14:54:22: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:22: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:22: Removed SpecialCharacters in: AKONT0001600000
|
||||
18.04.2019-14:54:22: Replace Function returns this String: AKONT0001600000
|
||||
18.04.2019-14:54:22: Current value of line: 0, column number: 3 - column name: AKONT
|
||||
18.04.2019-14:54:22: AKONT0001600000
|
||||
18.04.2019-14:54:22: Valid Value found in this cell!
|
||||
18.04.2019-14:54:22:
|
||||
18.04.2019-14:54:23: Replace Function gets this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0160', '%column3%', '%column4%', '%column5%', '%column6%'
|
||||
18.04.2019-14:54:23: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:23: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:23: Removed SpecialCharacters in: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0160', '%column3%', 'AKONT0001600000', '%column5%', '%column6%'
|
||||
18.04.2019-14:54:23: Replace Function returns this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0160', '%column3%', 'AKONT0001600000', '%column5%', '%column6%'
|
||||
18.04.2019-14:54:23:
|
||||
18.04.2019-14:54:23: Starting processing for each column: Current 4 of 6
|
||||
18.04.2019-14:54:23:
|
||||
18.04.2019-14:54:23: Replace Function gets this String: %ColumnName%|%CellValue%
|
||||
18.04.2019-14:54:23: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:23: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:23: Removed SpecialCharacters in: ZTERM%CellValue%
|
||||
18.04.2019-14:54:23: Replace Function returns this String: ZTERM%CellValue%
|
||||
18.04.2019-14:54:23:
|
||||
18.04.2019-14:54:23: Replace Function gets this String: ZTERM%CellValue%
|
||||
18.04.2019-14:54:23: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:23: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:23: Removed SpecialCharacters in: ZTERMS999
|
||||
18.04.2019-14:54:23: Replace Function returns this String: ZTERMS999
|
||||
18.04.2019-14:54:23: Current value of line: 0, column number: 4 - column name: ZTERM
|
||||
18.04.2019-14:54:23: ZTERMS999
|
||||
18.04.2019-14:54:23: Valid Value found in this cell!
|
||||
18.04.2019-14:54:23:
|
||||
18.04.2019-14:54:23: Replace Function gets this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0160', '%column3%', 'AKONT0001600000', '%column5%', '%column6%'
|
||||
18.04.2019-14:54:23: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:23: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:23: Removed SpecialCharacters in: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0160', '%column3%', 'AKONT0001600000', 'ZTERMS999', '%column6%'
|
||||
18.04.2019-14:54:23: Replace Function returns this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0160', '%column3%', 'AKONT0001600000', 'ZTERMS999', '%column6%'
|
||||
18.04.2019-14:54:23:
|
||||
18.04.2019-14:54:23: Starting processing for each column: Current 5 of 6
|
||||
18.04.2019-14:54:23:
|
||||
18.04.2019-14:54:23: Replace Function gets this String: %ColumnName%|%CellValue%
|
||||
18.04.2019-14:54:23: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:23: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:23: Removed SpecialCharacters in: BUSAB%CellValue%
|
||||
18.04.2019-14:54:23: Replace Function returns this String: BUSAB%CellValue%
|
||||
18.04.2019-14:54:23:
|
||||
18.04.2019-14:54:23: Replace Function gets this String: BUSAB%CellValue%
|
||||
18.04.2019-14:54:23: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:24: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:24: Removed SpecialCharacters in: BUSAB01
|
||||
18.04.2019-14:54:24: Replace Function returns this String: BUSAB01
|
||||
18.04.2019-14:54:24: Current value of line: 0, column number: 5 - column name: BUSAB
|
||||
18.04.2019-14:54:24: BUSAB01
|
||||
18.04.2019-14:54:24: Valid Value found in this cell!
|
||||
18.04.2019-14:54:24:
|
||||
18.04.2019-14:54:24: Replace Function gets this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0160', '%column3%', 'AKONT0001600000', 'ZTERMS999', '%column6%'
|
||||
18.04.2019-14:54:24: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:24: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:24: Removed SpecialCharacters in: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0160', '%column3%', 'AKONT0001600000', 'ZTERMS999', 'BUSAB01'
|
||||
18.04.2019-14:54:24: Replace Function returns this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0160', '%column3%', 'AKONT0001600000', 'ZTERMS999', 'BUSAB01'
|
||||
18.04.2019-14:54:24: Purging unused Placeholders with NULL
|
||||
18.04.2019-14:54:24:
|
||||
18.04.2019-14:54:24: Replace Function gets this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0160', '%column3%', 'AKONT0001600000', 'ZTERMS999', 'BUSAB01'
|
||||
18.04.2019-14:54:24: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:24: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:24: Removed SpecialCharacters in: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0160', 'NULL', 'AKONT0001600000', 'ZTERMS999', 'BUSAB01'
|
||||
18.04.2019-14:54:24: Replace Function returns this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0160', 'NULL', 'AKONT0001600000', 'ZTERMS999', 'BUSAB01'
|
||||
18.04.2019-14:54:24:
|
||||
18.04.2019-14:54:24: Replace Function gets this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0160', 'NULL', 'AKONT0001600000', 'ZTERMS999', 'BUSAB01'
|
||||
18.04.2019-14:54:24: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:24: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:24: Removed SpecialCharacters in: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0160', NULL, 'AKONT0001600000', 'ZTERMS999', 'BUSAB01'
|
||||
18.04.2019-14:54:24: Replace Function returns this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0160', NULL, 'AKONT0001600000', 'ZTERMS999', 'BUSAB01'
|
||||
18.04.2019-14:54:24:
|
||||
18.04.2019-14:54:24: Connecting with DB:
|
||||
18.04.2019-14:54:24: Server = 172.24.12.41\tests, uid=sa, pwd=<set in ConfigFile>, Database = DD_ECM_WISAG, Integrated Security = false
|
||||
18.04.2019-14:54:24: Processing SQL Query:
|
||||
18.04.2019-14:54:24: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0160', NULL, 'AKONT0001600000', 'ZTERMS999', 'BUSAB01'
|
||||
18.04.2019-14:54:24:
|
||||
18.04.2019-14:54:24: Starting processing for each line: Current 1 of 1000
|
||||
18.04.2019-14:54:24:
|
||||
18.04.2019-14:54:24: Starting processing for each column: Current 0 of 6
|
||||
18.04.2019-14:54:24:
|
||||
18.04.2019-14:54:24: Replace Function gets this String: %ColumnName%|%CellValue%
|
||||
18.04.2019-14:54:24: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:25: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:25: Removed SpecialCharacters in: LIFNR%CellValue%
|
||||
18.04.2019-14:54:25: Replace Function returns this String: LIFNR%CellValue%
|
||||
18.04.2019-14:54:25:
|
||||
18.04.2019-14:54:25: Replace Function gets this String: LIFNR%CellValue%
|
||||
18.04.2019-14:54:25: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:25: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:25: Removed SpecialCharacters in: LIFNR0007000001
|
||||
18.04.2019-14:54:25: Replace Function returns this String: LIFNR0007000001
|
||||
18.04.2019-14:54:25: Current value of line: 1, column number: 0 - column name: LIFNR
|
||||
18.04.2019-14:54:25: LIFNR0007000001
|
||||
18.04.2019-14:54:25: Valid Value found in this cell!
|
||||
18.04.2019-14:54:25:
|
||||
18.04.2019-14:54:25: Replace Function gets this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select '%column1%', '%column2%', '%column3%', '%column4%', '%column5%', '%column6%'
|
||||
|
||||
18.04.2019-14:54:25: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:25: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:25: Removed SpecialCharacters in: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', '%column2%', '%column3%', '%column4%', '%column5%', '%column6%'
|
||||
18.04.2019-14:54:25: Replace Function returns this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', '%column2%', '%column3%', '%column4%', '%column5%', '%column6%'
|
||||
18.04.2019-14:54:25:
|
||||
18.04.2019-14:54:25: Starting processing for each column: Current 1 of 6
|
||||
18.04.2019-14:54:25:
|
||||
18.04.2019-14:54:25: Replace Function gets this String: %ColumnName%|%CellValue%
|
||||
18.04.2019-14:54:25: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:25: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:25: Removed SpecialCharacters in: BUKRS%CellValue%
|
||||
18.04.2019-14:54:25: Replace Function returns this String: BUKRS%CellValue%
|
||||
18.04.2019-14:54:25:
|
||||
18.04.2019-14:54:25: Replace Function gets this String: BUKRS%CellValue%
|
||||
18.04.2019-14:54:25: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:25: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:25: Removed SpecialCharacters in: BUKRS0349
|
||||
18.04.2019-14:54:25: Replace Function returns this String: BUKRS0349
|
||||
18.04.2019-14:54:25: Current value of line: 1, column number: 1 - column name: BUKRS
|
||||
18.04.2019-14:54:25: BUKRS0349
|
||||
18.04.2019-14:54:25: Valid Value found in this cell!
|
||||
18.04.2019-14:54:25:
|
||||
18.04.2019-14:54:25: Replace Function gets this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', '%column2%', '%column3%', '%column4%', '%column5%', '%column6%'
|
||||
18.04.2019-14:54:26: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:26: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:26: Removed SpecialCharacters in: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0349', '%column3%', '%column4%', '%column5%', '%column6%'
|
||||
18.04.2019-14:54:26: Replace Function returns this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0349', '%column3%', '%column4%', '%column5%', '%column6%'
|
||||
18.04.2019-14:54:26:
|
||||
18.04.2019-14:54:26: Starting processing for each column: Current 2 of 6
|
||||
18.04.2019-14:54:26:
|
||||
18.04.2019-14:54:26: Replace Function gets this String: %ColumnName%|%CellValue%
|
||||
18.04.2019-14:54:26: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:26: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:26: Removed SpecialCharacters in: SPERR%CellValue%
|
||||
18.04.2019-14:54:26: Replace Function returns this String: SPERR%CellValue%
|
||||
18.04.2019-14:54:26: Current value of line: 1, column number: 2 - column name: SPERR
|
||||
18.04.2019-14:54:26: SPERR%CellValue%
|
||||
18.04.2019-14:54:26: No or invalid Value found in this cell!
|
||||
18.04.2019-14:54:26:
|
||||
18.04.2019-14:54:26: Starting processing for each column: Current 3 of 6
|
||||
18.04.2019-14:54:26:
|
||||
18.04.2019-14:54:26: Replace Function gets this String: %ColumnName%|%CellValue%
|
||||
18.04.2019-14:54:26: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:26: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:26: Removed SpecialCharacters in: AKONT%CellValue%
|
||||
18.04.2019-14:54:26: Replace Function returns this String: AKONT%CellValue%
|
||||
18.04.2019-14:54:26:
|
||||
18.04.2019-14:54:26: Replace Function gets this String: AKONT%CellValue%
|
||||
18.04.2019-14:54:26: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:26: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:26: Removed SpecialCharacters in: AKONT0001600000
|
||||
18.04.2019-14:54:26: Replace Function returns this String: AKONT0001600000
|
||||
18.04.2019-14:54:26: Current value of line: 1, column number: 3 - column name: AKONT
|
||||
18.04.2019-14:54:26: AKONT0001600000
|
||||
18.04.2019-14:54:26: Valid Value found in this cell!
|
||||
18.04.2019-14:54:26:
|
||||
18.04.2019-14:54:26: Replace Function gets this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0349', '%column3%', '%column4%', '%column5%', '%column6%'
|
||||
18.04.2019-14:54:26: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:27: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:27: Removed SpecialCharacters in: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0349', '%column3%', 'AKONT0001600000', '%column5%', '%column6%'
|
||||
18.04.2019-14:54:27: Replace Function returns this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0349', '%column3%', 'AKONT0001600000', '%column5%', '%column6%'
|
||||
18.04.2019-14:54:27:
|
||||
18.04.2019-14:54:27: Starting processing for each column: Current 4 of 6
|
||||
18.04.2019-14:54:27:
|
||||
18.04.2019-14:54:27: Replace Function gets this String: %ColumnName%|%CellValue%
|
||||
18.04.2019-14:54:27: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:27: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:27: Removed SpecialCharacters in: ZTERM%CellValue%
|
||||
18.04.2019-14:54:27: Replace Function returns this String: ZTERM%CellValue%
|
||||
18.04.2019-14:54:27:
|
||||
18.04.2019-14:54:27: Replace Function gets this String: ZTERM%CellValue%
|
||||
18.04.2019-14:54:27: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:27: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:27: Removed SpecialCharacters in: ZTERM0001
|
||||
18.04.2019-14:54:27: Replace Function returns this String: ZTERM0001
|
||||
18.04.2019-14:54:27: Current value of line: 1, column number: 4 - column name: ZTERM
|
||||
18.04.2019-14:54:27: ZTERM0001
|
||||
18.04.2019-14:54:27: Valid Value found in this cell!
|
||||
18.04.2019-14:54:27:
|
||||
18.04.2019-14:54:27: Replace Function gets this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0349', '%column3%', 'AKONT0001600000', '%column5%', '%column6%'
|
||||
18.04.2019-14:54:27: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:27: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:27: Removed SpecialCharacters in: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0349', '%column3%', 'AKONT0001600000', 'ZTERM0001', '%column6%'
|
||||
18.04.2019-14:54:27: Replace Function returns this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0349', '%column3%', 'AKONT0001600000', 'ZTERM0001', '%column6%'
|
||||
18.04.2019-14:54:27:
|
||||
18.04.2019-14:54:27: Starting processing for each column: Current 5 of 6
|
||||
18.04.2019-14:54:27:
|
||||
18.04.2019-14:54:27: Replace Function gets this String: %ColumnName%|%CellValue%
|
||||
18.04.2019-14:54:27: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:27: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:28: Removed SpecialCharacters in: BUSAB%CellValue%
|
||||
18.04.2019-14:54:28: Replace Function returns this String: BUSAB%CellValue%
|
||||
18.04.2019-14:54:28:
|
||||
18.04.2019-14:54:28: Replace Function gets this String: BUSAB%CellValue%
|
||||
18.04.2019-14:54:28: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:28: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:28: Removed SpecialCharacters in: BUSAB01
|
||||
18.04.2019-14:54:28: Replace Function returns this String: BUSAB01
|
||||
18.04.2019-14:54:28: Current value of line: 1, column number: 5 - column name: BUSAB
|
||||
18.04.2019-14:54:28: BUSAB01
|
||||
18.04.2019-14:54:28: Valid Value found in this cell!
|
||||
18.04.2019-14:54:28:
|
||||
18.04.2019-14:54:28: Replace Function gets this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0349', '%column3%', 'AKONT0001600000', 'ZTERM0001', '%column6%'
|
||||
18.04.2019-14:54:28: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:28: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:28: Removed SpecialCharacters in: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0349', '%column3%', 'AKONT0001600000', 'ZTERM0001', 'BUSAB01'
|
||||
18.04.2019-14:54:28: Replace Function returns this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0349', '%column3%', 'AKONT0001600000', 'ZTERM0001', 'BUSAB01'
|
||||
18.04.2019-14:54:28: Purging unused Placeholders with NULL
|
||||
18.04.2019-14:54:28:
|
||||
18.04.2019-14:54:28: Replace Function gets this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0349', '%column3%', 'AKONT0001600000', 'ZTERM0001', 'BUSAB01'
|
||||
18.04.2019-14:54:28: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:28: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:28: Removed SpecialCharacters in: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0349', 'NULL', 'AKONT0001600000', 'ZTERM0001', 'BUSAB01'
|
||||
18.04.2019-14:54:28: Replace Function returns this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0349', 'NULL', 'AKONT0001600000', 'ZTERM0001', 'BUSAB01'
|
||||
18.04.2019-14:54:28:
|
||||
18.04.2019-14:54:28: Replace Function gets this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0349', 'NULL', 'AKONT0001600000', 'ZTERM0001', 'BUSAB01'
|
||||
18.04.2019-14:54:28: TrimStartandEnd Function is enabled and engaging...
|
||||
18.04.2019-14:54:28: RemoveSpecialCharacter Function is enabled and engaging...
|
||||
18.04.2019-14:54:28: Removed SpecialCharacters in: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0349', NULL, 'AKONT0001600000', 'ZTERM0001', 'BUSAB01'
|
||||
18.04.2019-14:54:28: Replace Function returns this String: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0349', NULL, 'AKONT0001600000', 'ZTERM0001', 'BUSAB01'
|
||||
18.04.2019-14:54:28:
|
||||
18.04.2019-14:54:28: Connecting with DB:
|
||||
18.04.2019-14:54:29: Server = 172.24.12.41\tests, uid=sa, pwd=<set in ConfigFile>, Database = DD_ECM_WISAG, Integrated Security = false
|
||||
18.04.2019-14:54:29: Processing SQL Query:
|
||||
18.04.2019-14:54:29: INSERT INTO [DD_ECM_WISAG].[dbo].[SAP_IMPORT] (c001, c002, c003, c004, c005, c006) Select 'LIFNR0007000001', 'BUKRS0349', NULL, 'AKONT0001600000', 'ZTERM0001', 'BUSAB01'
|
||||
18.04.2019-14:54:29: Missing 'Profile_FinalSQLQuery =' block in ConfigFile!
|
||||
18.04.2019-14:54:29:
|
||||
18.04.2019-14:54:29: File processing completed!
|
||||
18.04.2019-14:54:29: Error moving File after processing, to:
|
||||
18.04.2019-14:54:29:
|
||||
18.04.2019-14:54:29:
|
||||
18.04.2019-14:54:29: --------------------------------------------------------------------------------
|
||||
18.04.2019-14:54:29: Checking for old LogFiles.
|
||||
18.04.2019-14:54:29: --------------------------------------------------------------------------------
|
||||
18.04.2019-14:54:29: Files should be removed which are older than 30 Day(s).
|
||||
18.04.2019-14:54:29: Found no old Files.
|
||||
18.04.2019-14:54:29:
|
||||
18.04.2019-14:54:29: ********************************************************************************
|
||||
18.04.2019-14:54:29: Program Completed: Import-FileContent2Database on DD-PC-STD01,
|
||||
18.04.2019-14:54:29: from Account DIGITALDATA\KammM.
|
||||
18.04.2019-14:54:29: ********************************************************************************
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -23,7 +23,7 @@ Function MoveOrCopy-Item-withLogging {
|
||||
Write-Logfile
|
||||
|
||||
.VERSION
|
||||
1.2.1.1 / 17.12.2016
|
||||
1.2.1.2 / 23.02.2024
|
||||
|
||||
.PARAMETER SourceFile
|
||||
Give the full Path and Filename to one File.
|
||||
@ -84,9 +84,7 @@ Function MoveOrCopy-Item-withLogging {
|
||||
#Checking if "Write-LogFile" Module was loaded
|
||||
IF (Get-Module -Name "Write-LogFile") {
|
||||
|
||||
$FileTest = Test-Path "$SourceFile" -PathType Leaf
|
||||
|
||||
IF ($Filetest -eq 'True') {
|
||||
IF ((Test-Path $SourceFile -PathType Leaf) -eq $True) {
|
||||
|
||||
Write-Logfile -LogLine ""
|
||||
$SourcePath = ([System.IO.Path]::GetDirectoryName($SourceFile).ToString())
|
||||
@ -132,13 +130,16 @@ Function MoveOrCopy-Item-withLogging {
|
||||
# Does file already exist in the target directory?
|
||||
$FileTest = Test-Path "$DestinationPath\$FileName" -PathType Leaf
|
||||
|
||||
IF ($Filetest -eq 'True') {
|
||||
IF ($Filetest -eq $True) {
|
||||
|
||||
Write-Logfile -LogLine "The File ($Filename) already exists in the target directory, starting Version Check."
|
||||
|
||||
[String]$FileNameSplit = ($Filename_noExt -split "$VersionSeperator")
|
||||
[Int]$FileVersion = $NULL
|
||||
[String]$FileNameSplit = ($Filename_noExt -split $VersionSeperator)
|
||||
[Int]$FileVersion = 0
|
||||
|
||||
IF ($FileNameSplit[1] -is [Int]) {
|
||||
[Int]$FileVersion = $FileNameSplit[1]
|
||||
} #end if
|
||||
|
||||
# Has the new file already a Version tag?
|
||||
IF ($FileVersion -eq 0) {
|
||||
@ -166,12 +167,12 @@ Function MoveOrCopy-Item-withLogging {
|
||||
# code block for the copy or move process
|
||||
Try {
|
||||
|
||||
Set-Variable -Name FileHash_befor -Value (Get-FileHash -Path "$SourceFile" -Algorithm SHA512 | select Hash | Foreach-Object {$_ -replace "@{Hash=", ""} | Foreach-Object {$_ -replace "}", ""})
|
||||
Set-Variable -Name FileHash_befor -Value (Get-FileHash -Path "$SourceFile" -Algorithm SHA512 | Select-Object Hash | Foreach-Object {$_ -replace "@{Hash=", ""} | Foreach-Object {$_ -replace "}", ""})
|
||||
Set-Variable -Name FileTemp -Value (Copy-Item -Path "$SourceFile" -Destination "$DestinationPath\$Timestamp3`_$FileName" -PassThru -Force)
|
||||
Write-Logfile -LogLine "The $Action command has been completed."
|
||||
Set-Variable -Name FileFinal -Value (Rename-Item -Path "$FileTemp" -NewName "$FileName_noExt$VersionSeperator$FileVersion$FileExtension" -PassThru -Force )
|
||||
Write-Logfile -LogLine "File was renamed to: $FileName_noExt$VersionSeperator$FileVersion$FileExtension, and is now transferd to: $DestinationPath."
|
||||
Set-Variable -Name FileHash_after -Value (Get-FileHash -Path "$FileFinal" -Algorithm SHA512 | select Hash | Foreach-Object {$_ -replace "@{Hash=", ""} | Foreach-Object {$_ -replace "}", ""})
|
||||
Set-Variable -Name FileHash_after -Value (Get-FileHash -Path "$FileFinal" -Algorithm SHA512 | Select-Object Hash | Foreach-Object {$_ -replace "@{Hash=", ""} | Foreach-Object {$_ -replace "}", ""})
|
||||
Write-Host "DEBUG Info: Hash Value before: $FileHash_befor"
|
||||
Write-Host "DEBUG Info: Hash Value after: $FileHash_after"
|
||||
|
||||
@ -220,9 +221,9 @@ Function MoveOrCopy-Item-withLogging {
|
||||
|
||||
ELSE {
|
||||
|
||||
Set-Variable -Name FileHash_befor -Value (Get-FileHash -Path "$SourceFile" -Algorithm SHA512 | select Hash | Foreach-Object {$_ -replace "@{Hash=", ""} | Foreach-Object {$_ -replace "}", ""})
|
||||
Set-Variable -Name FileHash_befor -Value (Get-FileHash -Path "$SourceFile" -Algorithm SHA512 | Select-Object Hash | Foreach-Object {$_ -replace "@{Hash=", ""} | Foreach-Object {$_ -replace "}", ""})
|
||||
Set-Variable -Name FileFinal -Value (Copy-Item -Path "$SourceFile" -Destination "$DestinationPath\$FileName" -PassThru -Force)
|
||||
Set-Variable -Name FileHash_after -Value (Get-FileHash -Path "$FileFinal" -Algorithm SHA512 | select Hash | Foreach-Object {$_ -replace "@{Hash=", ""} | Foreach-Object {$_ -replace "}", ""})
|
||||
Set-Variable -Name FileHash_after -Value (Get-FileHash -Path "$FileFinal" -Algorithm SHA512 | Select-Object Hash | Foreach-Object {$_ -replace "@{Hash=", ""} | Foreach-Object {$_ -replace "}", ""})
|
||||
Write-Logfile -LogLine "The $Action command has been completed for file: $SourceFile"
|
||||
Write-Logfile -LogLine "And is now transferd to: $DestinationPath"
|
||||
Write-Host "DEBUG Info: Hash Value before: $FileHash_befor"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@ -1,37 +0,0 @@
|
||||
' VB Script Document
|
||||
' option explicit
|
||||
|
||||
' MoveOrCopyFiles_Caller
|
||||
' Verschiebe Dateien nacheinander nach einem definierten Muster
|
||||
|
||||
' Digital Data
|
||||
' Ludwig-Rinn-Straße 16
|
||||
' 35452 Heuchelheim
|
||||
' Tel.: 0641 / 202360
|
||||
' E-Mail: info@didalog.de
|
||||
|
||||
' Version 1.0.0.0
|
||||
' Letzte Aktualisierung: 29.01.2016
|
||||
|
||||
'----------------------------------------------------------------------------------------
|
||||
' Move files named - Lang-Eingangsrechnung*.pdf
|
||||
'----------------------------------------------------------------------------------------
|
||||
|
||||
' Create object
|
||||
Set objShell = CreateObject("Wscript.shell")
|
||||
|
||||
objShell.run("powershell -file D:\ScriptFiles\MoveOrCopyFiles\BatchBarcodeSeperator_Ende\MoveOrCopyFiles.ps1")
|
||||
|
||||
' Deallocate WScript Shell object
|
||||
Set objShell = Nothing
|
||||
|
||||
' Connect to Windows Management Instrumentation (WMI) object using a moniker
|
||||
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
|
||||
|
||||
' Execute a query to monitor process deletion
|
||||
Set colEvents = objWMIService.ExecNotificationQuery("Select * From __InstanceDeletionEvent " _
|
||||
& "Within 1 Where TargetInstance ISA 'Win32_Process' And TargetInstance.Name = 'powershell.exe'")
|
||||
|
||||
' Wait for process deletion event
|
||||
Set objEvent = colEvents.NextEvent
|
||||
'----------------------------------------------------------------------------------------
|
||||
@ -1,30 +0,0 @@
|
||||
Version 1.0.1.2 - 07.02.2016
|
||||
NEW: - Aufrufparameter nun verfügbar.
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.0.1.0 - 30.09.2015
|
||||
- Erste funktionierende Version!
|
||||
NEW: - Funktion "Func-File-check-state" nun eingebaut.
|
||||
FIX: -
|
||||
CHG: - Umbennung von "Simply_copy_or_move_Files" zu "MoveOrCopyFiles".
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.0.0.0 - 08.12.2014
|
||||
- Erste funktionierende Version!
|
||||
NEW: -
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
--------------------------Legende--------------------------
|
||||
NEW: = Hinzufügen einer neuen Funktion
|
||||
FIX: = Korrektur einer vorhandenen Funktion
|
||||
CHG: = Änderung oder Erweiterung einer vorhandenen Funktion
|
||||
REM: = Entfernen einer Funktion
|
||||
-----------------------------------------------------------
|
||||
@ -1,77 +0,0 @@
|
||||
####################################################################################################
|
||||
# Digital Data Configuration File #
|
||||
# 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\MoveOrCopyFiles #
|
||||
# FailSafe Setting is: <ScriptPath> #
|
||||
####################################################################################################
|
||||
LogPath = E:\LogFiles\MoveOrCopyFiles\BatchBarcodeSeperator_Ende
|
||||
|
||||
####################################################################################################
|
||||
# Numerical value how long (in days) log files will be kept. #
|
||||
# Value of 0 disables the delete function completely. #
|
||||
# FailSafe Setting is: 60 #
|
||||
####################################################################################################
|
||||
LogFileKeepTime = 90
|
||||
|
||||
####################################################################################################
|
||||
# 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 = 10000000
|
||||
|
||||
#==================================================================================================#
|
||||
########################################## Profile Setup ###########################################
|
||||
#==================================================================================================#
|
||||
|
||||
####################################################################################################
|
||||
# Define up to 99 MoveOrCopy Profiles in this config file for the executing Script. #
|
||||
# Syntax: #
|
||||
# MOCF_Profile = move|copy ; *.FileType, ; E:\SourcePath ; E:\DestinationPath #
|
||||
# Example: #
|
||||
# MOCF_Profile = move ; *.pdf ; E:\SourcePath ; E:\DestinationPath #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# Special Parameter 3: #
|
||||
# -> 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! #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# Optional Parameter 1: #
|
||||
# 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 ; 15 #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# 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 = move ; Lang-Eingangsrechnung*.pdf ; E:\DocumentProcessing\Output\File\BatchBarcodeSeperator ; E:\ECMLite\LANG - Geschäftsprozesse\DocumentProcessing\File\Eingangsrechnung
|
||||
MOCF_Profile = move ; Lang-Korrespondenz*.pdf ; E:\DocumentProcessing\Output\File\BatchBarcodeSeperator; E:\ECMLite\LANG - Geschäftsprozesse\DocumentProcessing\File\Korrespondenz
|
||||
MOCF_Profile = move ; *.pdf ; E:\DocumentProcessing\Output\File\BatchBarcodeSeperator ; E:\ECMLite\LANG - Geschäftsprozesse\DocumentProcessing\File\Lost+Found
|
||||
Binary file not shown.
@ -1,37 +0,0 @@
|
||||
' VB Script Document
|
||||
' option explicit
|
||||
|
||||
' MoveOrCopy-Files_Caller
|
||||
' Verschiebe Dateien nacheinander nach einem definierten Muster
|
||||
|
||||
' Digital Data
|
||||
' Ludwig-Rinn-Straße 16
|
||||
' 35452 Heuchelheim
|
||||
' Tel.: 0641 / 202360
|
||||
' E-Mail: info@didalog.de
|
||||
|
||||
' Version 1.0.0.1
|
||||
' Letzte Aktualisierung: 05.08.2016
|
||||
|
||||
'------------------------------------------------------------------------------------------------------------------
|
||||
' Run a command. Copy that script block and paste it after this one, for step by step processing.
|
||||
'------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
' Create object
|
||||
Set objShell = CreateObject("Wscript.shell")
|
||||
|
||||
objShell.run("powershell -file D:\ScriptFiles\MoveOrCopy-Files\BatchBarcodeSeperator_Ende\MoveOrCopyFiles.ps1")
|
||||
|
||||
' Deallocate WScript Shell object
|
||||
Set objShell = Nothing
|
||||
|
||||
' Connect to Windows Management Instrumentation (WMI) object using a moniker
|
||||
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
|
||||
|
||||
' Execute a query to monitor process deletion
|
||||
Set colEvents = objWMIService.ExecNotificationQuery("Select * From __InstanceDeletionEvent " _
|
||||
& "Within 1 Where TargetInstance ISA 'Win32_Process' And TargetInstance.Name = 'powershell.exe'")
|
||||
|
||||
' Wait for process deletion event
|
||||
Set objEvent = colEvents.NextEvent
|
||||
'------------------------------------------------------------------------------------------------------------------
|
||||
@ -1,55 +0,0 @@
|
||||
Version 1.1.1.0 - 24.02.2017
|
||||
NEW: -
|
||||
FIX: - Fehler in Schleifenzähler korrigiert.
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.0.1 - 01.08.2016
|
||||
NEW: -
|
||||
FIX: - Variablen Bereinigung vervollständigt.
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.0.0 - 29.07.2016
|
||||
NEW: - Neue optionale Parameter verfügbar: %RegExGroup and %Replace.
|
||||
FIX: -
|
||||
CHG: - Optionale Parameter folgen nun keiner spezifischen Reihenfolge mehr.
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
|
||||
Version 1.0.1.2 - 07.02.2016
|
||||
NEW: - Aufrufparameter nun verfügbar.
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.0.1.0 - 30.09.2015
|
||||
- Erste funktionierende Version!
|
||||
NEW: - Funktion "Func-File-check-state" nun eingebaut.
|
||||
FIX: -
|
||||
CHG: - Umbennung von "Simply_copy_or_move_Files" zu "MoveOrCopyFiles".
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.0.0.0 - 08.12.2014
|
||||
- Erste funktionierende Version!
|
||||
NEW: -
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
--------------------------Legende--------------------------
|
||||
NEW: = Hinzufügen einer neuen Funktion
|
||||
FIX: = Korrektur einer vorhandenen Funktion
|
||||
CHG: = Änderung oder Erweiterung einer vorhandenen Funktion
|
||||
REM: = Entfernen einer Funktion
|
||||
-----------------------------------------------------------
|
||||
@ -1,92 +0,0 @@
|
||||
####################################################################################################
|
||||
# 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 = E:\LogFiles\MoveOrCopyFiles\BatchBarcodeSeperator_Ende
|
||||
|
||||
####################################################################################################
|
||||
# Numerical value how long (in days) log files will be kept. #
|
||||
# Value of 0 disables the delete function completely. #
|
||||
# FailSafe Setting is: 60 #
|
||||
####################################################################################################
|
||||
LogFileKeepTime = 90
|
||||
|
||||
####################################################################################################
|
||||
# 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 = 10000000
|
||||
|
||||
#==================================================================================================#
|
||||
########################################## Profile Setup ###########################################
|
||||
#==================================================================================================#
|
||||
|
||||
####################################################################################################
|
||||
# Define up to 99 MoveOrCopy Profiles in this config file for the executing Script. #
|
||||
# Syntax: #
|
||||
# MOCF_Profile = move|copy ; *.<FileType>, ; <SourcePath> ; <DestinationPath> #
|
||||
# Example: #
|
||||
# MOCF_Profile = move ; *.pdf ; E:\SourcePath ; 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 #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# 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; *.pdf ; E:\Testordner\input ; E:\Testordner\output
|
||||
# MOCF_Profile = copy; *.pdf ; %ProcessOnlyLastProfileFiles ; E:\Testordner\output ; %FileDelayAge5
|
||||
# MOCF_Profile = copy; *.pdf ; E:\Testordner\input ; E:\Testordner\output ; %FileDelayAge15 ; %RegExGroup1(?:%SCAN%&(DD-[a-zA-Z-]{1,})) ; %Replace%SCAN%&,
|
||||
Binary file not shown.
@ -1,45 +0,0 @@
|
||||
@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
|
||||
@ -1,37 +0,0 @@
|
||||
' VB Script Document
|
||||
' option explicit
|
||||
|
||||
' MoveOrCopy-Files_Caller
|
||||
' Verschiebe Dateien nacheinander nach einem definierten Muster
|
||||
|
||||
' Digital Data
|
||||
' Ludwig-Rinn-Straße 16
|
||||
' 35452 Heuchelheim
|
||||
' Tel.: 0641 / 202360
|
||||
' E-Mail: info@didalog.de
|
||||
|
||||
' Version 1.0.0.1
|
||||
' Letzte Aktualisierung: 05.08.2016
|
||||
|
||||
'------------------------------------------------------------------------------------------------------------------
|
||||
' Run a command. Copy that script block and paste it after this one, for step by step processing.
|
||||
'------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
' Create object
|
||||
Set objShell = CreateObject("Wscript.shell")
|
||||
|
||||
objShell.run("powershell -file D:\ScriptFiles\MoveOrCopy-Files\BatchBarcodeSeperator_Ende\MoveOrCopyFiles.ps1")
|
||||
|
||||
' Deallocate WScript Shell object
|
||||
Set objShell = Nothing
|
||||
|
||||
' Connect to Windows Management Instrumentation (WMI) object using a moniker
|
||||
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
|
||||
|
||||
' Execute a query to monitor process deletion
|
||||
Set colEvents = objWMIService.ExecNotificationQuery("Select * From __InstanceDeletionEvent " _
|
||||
& "Within 1 Where TargetInstance ISA 'Win32_Process' And TargetInstance.Name = 'powershell.exe'")
|
||||
|
||||
' Wait for process deletion event
|
||||
Set objEvent = colEvents.NextEvent
|
||||
'------------------------------------------------------------------------------------------------------------------
|
||||
@ -1,77 +0,0 @@
|
||||
Version 1.1.4.0 - 15.03.2019
|
||||
NEW: -
|
||||
FIX: - Schleifen Fehler bei %ProcessOnlyLastProfileFiles behoben
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.3.0 - 13.03.2019
|
||||
NEW: -
|
||||
FIX: -
|
||||
CHG: - Log Dateien entschlackt
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.2.0 - 28.02.2019
|
||||
NEW: - %date% Variable hinzugefügt
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.1.0 - 24.02.2017
|
||||
NEW: -
|
||||
FIX: - Fehler in Schleifenzähler korrigiert.
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.0.1 - 01.08.2016
|
||||
NEW: -
|
||||
FIX: - Variablen Bereinigung vervollständigt.
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.0.0 - 29.07.2016
|
||||
NEW: - Neue optionale Parameter verfügbar: %RegExGroup and %Replace.
|
||||
FIX: -
|
||||
CHG: - Optionale Parameter folgen nun keiner spezifischen Reihenfolge mehr.
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
|
||||
Version 1.0.1.2 - 07.02.2016
|
||||
NEW: - Aufrufparameter nun verfügbar.
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.0.1.0 - 30.09.2015
|
||||
NEW: - Funktion "Func-File-check-state" nun eingebaut.
|
||||
FIX: -
|
||||
CHG: - Umbennung von "Simply_copy_or_move_Files" zu "MoveOrCopyFiles".
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.0.0.0 - 08.12.2014 - Erste funktionierende Version!
|
||||
NEW: -
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
--------------------------Legende--------------------------
|
||||
NEW: = Hinzufügen einer neuen Funktion
|
||||
FIX: = Korrektur einer vorhandenen Funktion
|
||||
CHG: = Änderung oder Erweiterung einer vorhandenen Funktion
|
||||
REM: = Entfernen einer Funktion
|
||||
-----------------------------------------------------------
|
||||
@ -1,92 +0,0 @@
|
||||
####################################################################################################
|
||||
# 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 = 90
|
||||
|
||||
####################################################################################################
|
||||
# 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> ; <DestinationPath> #
|
||||
# Example: #
|
||||
# MOCF_Profile = move ; *.pdf ; E:\SourcePath ; 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 #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# 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; *.pdf ; E:\Testordner\input ; E:\Testordner\output
|
||||
# MOCF_Profile = copy; *.pdf ; %ProcessOnlyLastProfileFiles ; E:\Testordner\output ; %FileDelayAge5
|
||||
# MOCF_Profile = copy; *.pdf ; E:\Testordner\input ; E:\Testordner\output ; %FileDelayAge15 ; %RegExGroup1(?:%SCAN%&(DD-[a-zA-Z-]{1,})) ; %Replace%SCAN%&,
|
||||
Binary file not shown.
@ -1,45 +0,0 @@
|
||||
@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
|
||||
@ -1,37 +0,0 @@
|
||||
' VB Script Document
|
||||
' option explicit
|
||||
|
||||
' MoveOrCopy-Files_Caller
|
||||
' Verschiebe Dateien nacheinander nach einem definierten Muster
|
||||
|
||||
' Digital Data
|
||||
' Ludwig-Rinn-Straße 16
|
||||
' 35452 Heuchelheim
|
||||
' Tel.: 0641 / 202360
|
||||
' E-Mail: info@didalog.de
|
||||
|
||||
' Version 1.0.0.1
|
||||
' Letzte Aktualisierung: 05.08.2016
|
||||
|
||||
'------------------------------------------------------------------------------------------------------------------
|
||||
' Run a command. Copy that script block and paste it after this one, for step by step processing.
|
||||
'------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
' Create object
|
||||
Set objShell = CreateObject("Wscript.shell")
|
||||
|
||||
objShell.run("powershell -file D:\ScriptFiles\MoveOrCopy-Files\BatchBarcodeSeperator_Ende\MoveOrCopyFiles.ps1")
|
||||
|
||||
' Deallocate WScript Shell object
|
||||
Set objShell = Nothing
|
||||
|
||||
' Connect to Windows Management Instrumentation (WMI) object using a moniker
|
||||
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
|
||||
|
||||
' Execute a query to monitor process deletion
|
||||
Set colEvents = objWMIService.ExecNotificationQuery("Select * From __InstanceDeletionEvent " _
|
||||
& "Within 1 Where TargetInstance ISA 'Win32_Process' And TargetInstance.Name = 'powershell.exe'")
|
||||
|
||||
' Wait for process deletion event
|
||||
Set objEvent = colEvents.NextEvent
|
||||
'------------------------------------------------------------------------------------------------------------------
|
||||
@ -1,77 +0,0 @@
|
||||
Version 1.1.4.0 - 15.03.2019
|
||||
NEW: -
|
||||
FIX: - Schleifen Fehler bei %ProcessOnlyLastProfileFiles behoben
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.3.0 - 13.03.2019
|
||||
NEW: -
|
||||
FIX: -
|
||||
CHG: - Log Dateien entschlackt
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.2.0 - 28.02.2019
|
||||
NEW: - %date% Variable hinzugefügt
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.1.0 - 24.02.2017
|
||||
NEW: -
|
||||
FIX: - Fehler in Schleifenzähler korrigiert.
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.0.1 - 01.08.2016
|
||||
NEW: -
|
||||
FIX: - Variablen Bereinigung vervollständigt.
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.0.0 - 29.07.2016
|
||||
NEW: - Neue optionale Parameter verfügbar: %RegExGroup and %Replace.
|
||||
FIX: -
|
||||
CHG: - Optionale Parameter folgen nun keiner spezifischen Reihenfolge mehr.
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
|
||||
Version 1.0.1.2 - 07.02.2016
|
||||
NEW: - Aufrufparameter nun verfügbar.
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.0.1.0 - 30.09.2015
|
||||
NEW: - Funktion "Func-File-check-state" nun eingebaut.
|
||||
FIX: -
|
||||
CHG: - Umbennung von "Simply_copy_or_move_Files" zu "MoveOrCopyFiles".
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.0.0.0 - 08.12.2014 - Erste funktionierende Version!
|
||||
NEW: -
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
--------------------------Legende--------------------------
|
||||
NEW: = Hinzufügen einer neuen Funktion
|
||||
FIX: = Korrektur einer vorhandenen Funktion
|
||||
CHG: = Änderung oder Erweiterung einer vorhandenen Funktion
|
||||
REM: = Entfernen einer Funktion
|
||||
-----------------------------------------------------------
|
||||
@ -1,92 +0,0 @@
|
||||
####################################################################################################
|
||||
# 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 = 90
|
||||
|
||||
####################################################################################################
|
||||
# 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> ; <DestinationPath> #
|
||||
# Example: #
|
||||
# MOCF_Profile = move ; *.pdf ; E:\SourcePath ; 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 #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# 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; *.pdf ; E:\Testordner\input ; E:\Testordner\output
|
||||
# MOCF_Profile = copy; *.pdf ; %ProcessOnlyLastProfileFiles ; E:\Testordner\output ; %FileDelayAge5
|
||||
# MOCF_Profile = copy; *.pdf ; E:\Testordner\input ; E:\Testordner\output ; %FileDelayAge15 ; %RegExGroup1(?:%SCAN%&(DD-[a-zA-Z-]{1,})) ; %Replace%SCAN%&,
|
||||
Binary file not shown.
Binary file not shown.
@ -1,45 +0,0 @@
|
||||
@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
|
||||
@ -1,37 +0,0 @@
|
||||
' VB Script Document
|
||||
' option explicit
|
||||
|
||||
' MoveOrCopy-Files_Caller
|
||||
' Verschiebe Dateien nacheinander nach einem definierten Muster
|
||||
|
||||
' Digital Data
|
||||
' Ludwig-Rinn-Straße 16
|
||||
' 35452 Heuchelheim
|
||||
' Tel.: 0641 / 202360
|
||||
' E-Mail: info@didalog.de
|
||||
|
||||
' Version 1.0.0.1
|
||||
' Letzte Aktualisierung: 05.08.2016
|
||||
|
||||
'------------------------------------------------------------------------------------------------------------------
|
||||
' Run a command. Copy that script block and paste it after this one, for step by step processing.
|
||||
'------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
' Create object
|
||||
Set objShell = CreateObject("Wscript.shell")
|
||||
|
||||
objShell.run("powershell -file D:\ScriptFiles\MoveOrCopy-Files\BatchBarcodeSeperator_Ende\MoveOrCopyFiles.ps1")
|
||||
|
||||
' Deallocate WScript Shell object
|
||||
Set objShell = Nothing
|
||||
|
||||
' Connect to Windows Management Instrumentation (WMI) object using a moniker
|
||||
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
|
||||
|
||||
' Execute a query to monitor process deletion
|
||||
Set colEvents = objWMIService.ExecNotificationQuery("Select * From __InstanceDeletionEvent " _
|
||||
& "Within 1 Where TargetInstance ISA 'Win32_Process' And TargetInstance.Name = 'powershell.exe'")
|
||||
|
||||
' Wait for process deletion event
|
||||
Set objEvent = colEvents.NextEvent
|
||||
'------------------------------------------------------------------------------------------------------------------
|
||||
@ -1,94 +0,0 @@
|
||||
Version 1.3.0.0 - 22.04.2021
|
||||
NEW: - Neuer Parameter für Profile, es muss nun bestimmt werden, ob auch Unterverzeichnisse durchsucht werden (ReclusiveSwitch).
|
||||
- Neuer Parameter für Profile, es muss nun bestimmt werden, wie eine Datei vor der Verarbeitung geprüft wird (filechecktyp).
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.2.0.0 - 20.04.2021
|
||||
NEW: - Diverse Datumsplatzhalter für den Zielpfad eingefügt (z.b.: %CreationTimeYear%, ...)
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.4.0 - 15.03.2019
|
||||
NEW: -
|
||||
FIX: - Schleifen Fehler bei %ProcessOnlyLastProfileFiles behoben
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.3.0 - 13.03.2019
|
||||
NEW: -
|
||||
FIX: -
|
||||
CHG: - Log Dateien entschlackt
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.2.0 - 28.02.2019
|
||||
NEW: - %date% Variable hinzugefügt
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.1.0 - 24.02.2017
|
||||
NEW: -
|
||||
FIX: - Fehler in Schleifenzähler korrigiert.
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.0.1 - 01.08.2016
|
||||
NEW: -
|
||||
FIX: - Variablen Bereinigung vervollständigt.
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.0.0 - 29.07.2016
|
||||
NEW: - Neue optionale Parameter verfügbar: %RegExGroup and %Replace.
|
||||
FIX: -
|
||||
CHG: - Optionale Parameter folgen nun keiner spezifischen Reihenfolge mehr.
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
|
||||
Version 1.0.1.2 - 07.02.2016
|
||||
NEW: - Aufrufparameter nun verfügbar.
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.0.1.0 - 30.09.2015
|
||||
NEW: - Funktion "Func-File-check-state" nun eingebaut.
|
||||
FIX: -
|
||||
CHG: - Umbennung von "Simply_copy_or_move_Files" zu "MoveOrCopyFiles".
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.0.0.0 - 08.12.2014 - Erste funktionierende Version!
|
||||
NEW: -
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
--------------------------Legende--------------------------
|
||||
NEW: = Hinzufügen einer neuen Funktion
|
||||
FIX: = Korrektur einer vorhandenen Funktion
|
||||
CHG: = Änderung oder Erweiterung einer vorhandenen Funktion
|
||||
REM: = Entfernen einer Funktion
|
||||
-----------------------------------------------------------
|
||||
@ -1,113 +0,0 @@
|
||||
####################################################################################################
|
||||
# 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%&,
|
||||
Binary file not shown.
Binary file not shown.
@ -1,45 +0,0 @@
|
||||
@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
|
||||
@ -1,37 +0,0 @@
|
||||
' VB Script Document
|
||||
' option explicit
|
||||
|
||||
' MoveOrCopy-Files_Caller
|
||||
' Verschiebe Dateien nacheinander nach einem definierten Muster
|
||||
|
||||
' Digital Data
|
||||
' Ludwig-Rinn-Straße 16
|
||||
' 35452 Heuchelheim
|
||||
' Tel.: 0641 / 202360
|
||||
' E-Mail: info@didalog.de
|
||||
|
||||
' Version 1.0.0.1
|
||||
' Letzte Aktualisierung: 05.08.2016
|
||||
|
||||
'------------------------------------------------------------------------------------------------------------------
|
||||
' Run a command. Copy that script block and paste it after this one, for step by step processing.
|
||||
'------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
' Create object
|
||||
Set objShell = CreateObject("Wscript.shell")
|
||||
|
||||
objShell.run("powershell -file D:\ScriptFiles\MoveOrCopy-Files\BatchBarcodeSeperator_Ende\MoveOrCopyFiles.ps1")
|
||||
|
||||
' Deallocate WScript Shell object
|
||||
Set objShell = Nothing
|
||||
|
||||
' Connect to Windows Management Instrumentation (WMI) object using a moniker
|
||||
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
|
||||
|
||||
' Execute a query to monitor process deletion
|
||||
Set colEvents = objWMIService.ExecNotificationQuery("Select * From __InstanceDeletionEvent " _
|
||||
& "Within 1 Where TargetInstance ISA 'Win32_Process' And TargetInstance.Name = 'powershell.exe'")
|
||||
|
||||
' Wait for process deletion event
|
||||
Set objEvent = colEvents.NextEvent
|
||||
'------------------------------------------------------------------------------------------------------------------
|
||||
@ -1,111 +0,0 @@
|
||||
Version 1.3.2.0 - 08.07.2021
|
||||
NEW: -
|
||||
FIX: - Fehler beim Löschen von Logs behoben.
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.3.1.0 - 30.04.2021
|
||||
NEW: -
|
||||
FIX: - Fehler in File Collector Funktion behoben.
|
||||
- Fehler in Zielpfadbestimmung behoben, wenn Datei Attribute ausgelesen wurden.
|
||||
CHG: - File Collector listet nun vorab nicht mehr alle Dateien auf (machte das Skript zu langsam und die Logs zu groß).
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.3.0.0 - 22.04.2021
|
||||
NEW: - Neuer Parameter für Profile, es muss nun bestimmt werden, ob auch Unterverzeichnisse durchsucht werden (ReclusiveSwitch).
|
||||
- Neuer Parameter für Profile, es muss nun bestimmt werden, wie eine Datei vor der Verarbeitung geprüft wird (filechecktyp).
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.2.0.0 - 20.04.2021
|
||||
NEW: - Diverse Datumsplatzhalter für den Zielpfad eingefügt (z.b.: %CreationTimeYear%, ...)
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.4.0 - 15.03.2019
|
||||
NEW: -
|
||||
FIX: - Schleifen Fehler bei %ProcessOnlyLastProfileFiles behoben
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.3.0 - 13.03.2019
|
||||
NEW: -
|
||||
FIX: -
|
||||
CHG: - Log Dateien entschlackt
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.2.0 - 28.02.2019
|
||||
NEW: - %date% Variable hinzugefügt
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.1.0 - 24.02.2017
|
||||
NEW: -
|
||||
FIX: - Fehler in Schleifenzähler korrigiert.
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.0.1 - 01.08.2016
|
||||
NEW: -
|
||||
FIX: - Variablen Bereinigung vervollständigt.
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.0.0 - 29.07.2016
|
||||
NEW: - Neue optionale Parameter verfügbar: %RegExGroup and %Replace.
|
||||
FIX: -
|
||||
CHG: - Optionale Parameter folgen nun keiner spezifischen Reihenfolge mehr.
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
|
||||
Version 1.0.1.2 - 07.02.2016
|
||||
NEW: - Aufrufparameter nun verfügbar.
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.0.1.0 - 30.09.2015
|
||||
NEW: - Funktion "Func-File-check-state" nun eingebaut.
|
||||
FIX: -
|
||||
CHG: - Umbennung von "Simply_copy_or_move_Files" zu "MoveOrCopyFiles".
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.0.0.0 - 08.12.2014 - Erste funktionierende Version!
|
||||
NEW: -
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
--------------------------Legende--------------------------
|
||||
NEW: = Hinzufügen einer neuen Funktion
|
||||
FIX: = Korrektur einer vorhandenen Funktion
|
||||
CHG: = Änderung oder Erweiterung einer vorhandenen Funktion
|
||||
REM: = Entfernen einer Funktion
|
||||
-----------------------------------------------------------
|
||||
@ -1,114 +0,0 @@
|
||||
####################################################################################################
|
||||
# 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; *Attm00.pdf ; E:\Testordner\input ; true ; writetest ; E:\Testordner\output1
|
||||
MOCF_Profile = copy; %-not *Attm00.pdf ; E:\Testordner\input ; true ; writetest ; E:\Testordner\output2
|
||||
|
||||
#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%&,
|
||||
Binary file not shown.
@ -0,0 +1,66 @@
|
||||
21.02.2024-16:07:42:
|
||||
21.02.2024-16:07:42: ********************************************************************************
|
||||
21.02.2024-16:07:42: Program Startup: MoveOrCopy-Files on SDD-VMP03-VM07,
|
||||
21.02.2024-16:07:42: from Account DD-SAN01\Administrator.
|
||||
21.02.2024-16:07:42: ********************************************************************************
|
||||
21.02.2024-16:07:42:
|
||||
21.02.2024-16:07:42: Found 1 MountProfile(s) to process.
|
||||
21.02.2024-16:07:42:
|
||||
21.02.2024-16:07:42: --------------------------------------------------------------------------------
|
||||
21.02.2024-16:07:42: This is MountProfile: 1 of 1
|
||||
21.02.2024-16:07:42: --------------------------------------------------------------------------------
|
||||
21.02.2024-16:07:42: Configured RemotePath is: \\dd-pc-ent04\e$\KammM
|
||||
21.02.2024-16:07:42: Configured LocalPath is: T
|
||||
21.02.2024-16:07:42: Configured Username is: dd-gan\Administrator
|
||||
21.02.2024-16:07:42: Trying to connect to: \\dd-pc-ent04\e$\KammM,...
|
||||
21.02.2024-16:07:42: ... now connected to T
|
||||
21.02.2024-16:07:42: --------------------------------------------------------------------------------
|
||||
21.02.2024-16:07:42:
|
||||
21.02.2024-16:07:42: There is/are 1 out of 99 Rule(s) to process, starting now.
|
||||
21.02.2024-16:07:42:
|
||||
21.02.2024-16:07:42: ===========================================================================================
|
||||
21.02.2024-16:07:42: Processing MOCF_Profile01 now.
|
||||
21.02.2024-16:07:42: ===========================================================================================
|
||||
21.02.2024-16:07:42:
|
||||
21.02.2024-16:07:42: These Values are setup: move *.pdf E:\Testordner\input true writetest t:\test.
|
||||
21.02.2024-16:07:42:
|
||||
21.02.2024-16:07:42: This run, searches for *.pdf -Files in Folder: E:\Testordner\input
|
||||
21.02.2024-16:07:42: Checking Path E:\Testordner\input for existence.
|
||||
21.02.2024-16:07:42: Path E:\Testordner\input is already existence and can be used.
|
||||
21.02.2024-16:07:42: Searching reclusive in E:\Testordner\input\*
|
||||
21.02.2024-16:07:42: Could find some File(s) - 1 - in Path: E:\Testordner\input\* (regard on White and Black Lists) ...
|
||||
21.02.2024-16:07:42:
|
||||
21.02.2024-16:07:42: -------------------------------------------------------------------------------------------
|
||||
21.02.2024-16:07:42: Processing file: E:\Testordner\input\PDF Document (neu).pdf
|
||||
21.02.2024-16:07:42: -------------------------------------------------------------------------------------------
|
||||
21.02.2024-16:07:42:
|
||||
21.02.2024-16:07:42: Filesystem infos about this item (maybe important for final path):
|
||||
21.02.2024-16:07:42: Attributes: Archive
|
||||
21.02.2024-16:07:42: CreationTime Attribute: 02/21/2024 16:07:35
|
||||
21.02.2024-16:07:42: LastAccessTime Attribute: 02/21/2024 16:07:35
|
||||
21.02.2024-16:07:42: LastWriteTime Attribute: 02/21/2024 16:07:35
|
||||
21.02.2024-16:07:42:
|
||||
21.02.2024-16:07:43: This ist Try Number: 1 of 1000
|
||||
21.02.2024-16:07:43: to handle file: E:\Testordner\input\PDF Document (neu).pdf
|
||||
21.02.2024-16:07:43:
|
||||
21.02.2024-16:07:43: Checking if file: E:\Testordner\input\PDF Document (neu).pdf is locked...
|
||||
21.02.2024-16:07:43: Checking if file: E:\Testordner\input\PDF Document (neu).pdf is readable.
|
||||
21.02.2024-16:07:43: Checking if file: E:\Testordner\input\PDF Document (neu).pdf is writeable.
|
||||
21.02.2024-16:07:43: File E:\Testordner\input\PDF Document (neu).pdf checked with result: writeable
|
||||
21.02.2024-16:07:43: Checking Path t:\test for existence.
|
||||
21.02.2024-16:07:43: Path t:\test is already existence and can be used.
|
||||
21.02.2024-16:07:43:
|
||||
21.02.2024-16:07:43: The File (PDF Document (neu).pdf) already exists in the target directory, starting Version Check.
|
||||
21.02.2024-16:07:43: The move command has been completed.
|
||||
21.02.2024-16:07:43: File was renamed to: PDF Document (neu)~9.pdf, and is now transferd to: t:\test.
|
||||
21.02.2024-16:07:43: ===========================================================================================
|
||||
21.02.2024-16:07:43:
|
||||
21.02.2024-16:07:43: -------------------------------------------------------------------------------------------
|
||||
21.02.2024-16:07:43: Checking LogFiles:
|
||||
21.02.2024-16:07:43: -------------------------------------------------------------------------------------------
|
||||
21.02.2024-16:07:43: Log Files should be removed which are older than 30 Day(s).
|
||||
21.02.2024-16:07:43: Deleting no old LogFiles.
|
||||
21.02.2024-16:07:43:
|
||||
21.02.2024-16:07:43: *******************************************************************************************
|
||||
21.02.2024-16:07:43: Program Finish: MoveOrCopy-Files on SDD-VMP03-VM07 from Account DD-SAN01\Administrator.
|
||||
21.02.2024-16:07:43: *******************************************************************************************
|
||||
Binary file not shown.
@ -1,3 +1,11 @@
|
||||
Version 1.5.0.0 - 21.02.2024
|
||||
NEW: - Es können nun Netzlaufwerke per "MountProfile" eingebunden werden
|
||||
FIX: -
|
||||
CHG: - Der aktuelle Module Loader wurde implementiert
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.3.3.0 - 12.12.2023
|
||||
NEW: - Man kann nun den Parameter %not% als negatives Suchkriterium verwenden
|
||||
FIX: -
|
||||
@ -8,7 +16,7 @@ REM: -
|
||||
|
||||
Version 1.3.2.0 - 08.07.2021
|
||||
NEW: -
|
||||
FIX: - Fehler beim Löschen von Logs behoben.
|
||||
FIX: - Fehler beim L<EFBFBD>schen von Logs behoben.
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
@ -18,14 +26,14 @@ Version 1.3.1.0 - 30.04.2021
|
||||
NEW: -
|
||||
FIX: - Fehler in File Collector Funktion behoben.
|
||||
- Fehler in Zielpfadbestimmung behoben, wenn Datei Attribute ausgelesen wurden.
|
||||
CHG: - File Collector listet nun vorab nicht mehr alle Dateien auf (machte das Skript zu langsam und die Logs zu groß).
|
||||
CHG: - File Collector listet nun vorab nicht mehr alle Dateien auf (machte das Skript zu langsam und die Logs zu gro<EFBFBD>).
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.3.0.0 - 22.04.2021
|
||||
NEW: - Neuer Parameter für Profile, es muss nun bestimmt werden, ob auch Unterverzeichnisse durchsucht werden (ReclusiveSwitch).
|
||||
- Neuer Parameter für Profile, es muss nun bestimmt werden, wie eine Datei vor der Verarbeitung geprüft wird (filechecktyp).
|
||||
NEW: - Neuer Parameter f<EFBFBD>r Profile, es muss nun bestimmt werden, ob auch Unterverzeichnisse durchsucht werden (ReclusiveSwitch).
|
||||
- Neuer Parameter f<EFBFBD>r Profile, es muss nun bestimmt werden, wie eine Datei vor der Verarbeitung gepr<70>ft wird (filechecktyp).
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
@ -33,7 +41,7 @@ REM: -
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.2.0.0 - 20.04.2021
|
||||
NEW: - Diverse Datumsplatzhalter für den Zielpfad eingefügt (z.b.: %CreationTimeYear%, ...)
|
||||
NEW: - Diverse Datumsplatzhalter f<EFBFBD>r den Zielpfad eingef<65>gt (z.b.: %CreationTimeYear%, ...)
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
@ -57,7 +65,7 @@ REM: -
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.2.0 - 28.02.2019
|
||||
NEW: - %date% Variable hinzugefügt
|
||||
NEW: - %date% Variable hinzugef<EFBFBD>gt
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
@ -66,7 +74,7 @@ REM: -
|
||||
|
||||
Version 1.1.1.0 - 24.02.2017
|
||||
NEW: -
|
||||
FIX: - Fehler in Schleifenzähler korrigiert.
|
||||
FIX: - Fehler in Schleifenz<EFBFBD>hler korrigiert.
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
@ -74,14 +82,14 @@ REM: -
|
||||
|
||||
Version 1.1.0.1 - 01.08.2016
|
||||
NEW: -
|
||||
FIX: - Variablen Bereinigung vervollständigt.
|
||||
FIX: - Variablen Bereinigung vervollst<EFBFBD>ndigt.
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
Version 1.1.0.0 - 29.07.2016
|
||||
NEW: - Neue optionale Parameter verfügbar: %RegExGroup and %Replace.
|
||||
NEW: - Neue optionale Parameter verf<EFBFBD>gbar: %RegExGroup and %Replace.
|
||||
FIX: -
|
||||
CHG: - Optionale Parameter folgen nun keiner spezifischen Reihenfolge mehr.
|
||||
REM: -
|
||||
@ -90,7 +98,7 @@ REM: -
|
||||
|
||||
|
||||
Version 1.0.1.2 - 07.02.2016
|
||||
NEW: - Aufrufparameter nun verfügbar.
|
||||
NEW: - Aufrufparameter nun verf<EFBFBD>gbar.
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
@ -112,8 +120,8 @@ CHG: -
|
||||
REM: -
|
||||
|
||||
--------------------------Legende--------------------------
|
||||
NEW: = Hinzufügen einer neuen Funktion
|
||||
NEW: = Hinzuf<EFBFBD>gen einer neuen Funktion
|
||||
FIX: = Korrektur einer vorhandenen Funktion
|
||||
CHG: = Änderung oder Erweiterung einer vorhandenen Funktion
|
||||
CHG: = <EFBFBD>nderung oder Erweiterung einer vorhandenen Funktion
|
||||
REM: = Entfernen einer Funktion
|
||||
-----------------------------------------------------------
|
||||
|
||||
@ -46,6 +46,31 @@ FileCheckCounterLimit = 1000
|
||||
########################################## Profile Setup ###########################################
|
||||
#==================================================================================================#
|
||||
|
||||
####################################################################################################
|
||||
# Define Profiles in this config file for mapping network resources. #
|
||||
# Syntax: #
|
||||
# MountProfile = <SourcePath> ; <TargetLetter> ; <UserName|Domain\UserName> ; <Password> #
|
||||
# Example: #
|
||||
# MountProfile = \\path\share ; T ; domain\username ; password #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# First Parameter: <SourcePath> #
|
||||
# Set the path, you want to connect to. #
|
||||
# Example: \\path\share #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# Second Parameter: <SourceFile> #
|
||||
# Set the local letter or PSDrive Share name. #
|
||||
# Example: T #
|
||||
# Example: Testdrive #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# Third Parameter: <UserName|Domain\UserName> #
|
||||
# Set the Username (or domain\UserName) who has access rights to the share. #
|
||||
# Example: Administrator #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# Fourth Parameter: <Password> #
|
||||
# Set the password for the Username above. #
|
||||
# Example: SecurePassword #
|
||||
####################################################################################################
|
||||
|
||||
####################################################################################################
|
||||
# Define up to 99 MoveOrCopy Profiles in this config file for the executing Script. #
|
||||
# Syntax: #
|
||||
@ -106,6 +131,8 @@ FileCheckCounterLimit = 1000
|
||||
# -argSourcePath E:\SourcePath -argDestinationPath E:\DestinationPath -argFileDelayAge 15" #
|
||||
####################################################################################################
|
||||
|
||||
#MountProfile = \\path\share ; T ; domain\username ; password
|
||||
|
||||
MOCF_Profile = move; *Attm0.pdf ; E:\Testordner\input ; true ; writetest ; E:\Testordner\output1
|
||||
MOCF_Profile = move; %not% *Attm0.pdf ; E:\Testordner\input ; true ; writetest ; E:\Testordner\output2
|
||||
|
||||
|
||||
@ -0,0 +1,290 @@
|
||||
New-PSDrive - How to use PowerShell Net Use alternative https://lazyadmin.nl/powershell/new-psdrive/
|
||||
|
||||
New-PSDrive – How to use PowerShell Net Use
|
||||
alternative
|
||||
|
||||
Last updated April 7, 2022 by Rudy Mens
|
||||
|
||||
We all know the Net Use command that we can use to map network drives from the
|
||||
command line. Although we can use Net Use in PowerShell, there is a more powerful
|
||||
alternative, the New-PSDrive cmdlet.
|
||||
|
||||
With the New-PSDrive cmdlet, we cannot only map network drives but also create
|
||||
drive mappings to local folders or registry keys on our computer. Drives created with
|
||||
the cmdlet can be temporary for only the current PowerShell sessions or persistent so
|
||||
they can be used in explorer.
|
||||
|
||||
In this article, we are going to take a closer look at all the possibilities of the New-
|
||||
PSDrive cmdlet with some useful examples for you to use.
|
||||
|
||||
Temporary vs Persistent drives
|
||||
|
||||
Before we are going to take a look at how to create the network drives, I first want to
|
||||
explain the difference between temporary and persistent drives.
|
||||
|
||||
×
|
||||
|
||||
Temporary drives can only be used in the current PowerShell session. They won’t be
|
||||
visible in Windows Explorer and will be gone when you close the PowerShell session.
|
||||
|
||||
1 von 13 20.02.2024, 15:32
|
||||
New-PSDrive - How to use PowerShell Net Use alternative https://lazyadmin.nl/powershell/new-psdrive/
|
||||
|
||||
They are great to use when you need to interact with a remote folder or a long folder
|
||||
path on your local computer.
|
||||
|
||||
Persistent drives are assigned a drive letter and therefore can also be used in Explorer.
|
||||
They will remain available when you close the PowerShell session or even reboot your
|
||||
computer.
|
||||
|
||||
Adding a new network drive with New-PSDrive
|
||||
|
||||
To map a network drive with PowerShell, we are going to create a persistent network
|
||||
connection. This way the network drive will be available in Explorer and other tools
|
||||
and not only in PowerShell.
|
||||
|
||||
There are a couple of required parameters to create a network connection:
|
||||
|
||||
Parameter Description
|
||||
Name Must be an available drive letter
|
||||
PSProvider Set to FileSystem for network shares and folders
|
||||
Root The network location that you want to map
|
||||
To make it available outside PowerShell (in Explorer)
|
||||
×Persist
|
||||
|
||||
2 von 13 20.02.2024, 15:32
|
||||
New-PSDrive - How to use PowerShell Net Use alternative https://lazyadmin.nl/powershell/new-psdrive/
|
||||
|
||||
So to map the network share \\VBoxSvr\Win11 and assign it the drive letter v: we can
|
||||
use the following command:
|
||||
|
||||
1. New-PSDrive -Name V -PSProvider FileSystem -Root \\VBoxSvr\Win11 -Persist Copy
|
||||
|
||||
New-PSDrive network mapping
|
||||
|
||||
The network location will now be available in Explorer or any other tool that you want
|
||||
to use.
|
||||
|
||||
Using different credentials for the mapped network drive
|
||||
|
||||
Just like with Net Use we can use different credentials to open a remote network
|
||||
drive. For this, we first need to create a credential object that we can use to map the
|
||||
|
||||
×network drive.
|
||||
|
||||
3 von 13 Copy
|
||||
|
||||
20.02.2024, 15:32
|
||||
New-PSDrive - How to use PowerShell Net Use alternative https://lazyadmin.nl/powershell/new-psdrive/
|
||||
|
||||
Copy
|
||||
|
||||
1. # Get the credentials
|
||||
|
||||
2. $cred = Get-Credential
|
||||
|
||||
3.
|
||||
|
||||
4. # Create the drive mapping with the credentials
|
||||
|
||||
5. New-PSDrive -Name V -PSProvider FileSystem -Root \\VBoxSvr\Win11 -Persist -
|
||||
Credential $cred
|
||||
|
||||
Creating a Temporary Drive Mapping in PowerShell
|
||||
|
||||
As mentioned we can also create a temporary drive mapping with PowerShell. With
|
||||
temporary mappings, we are not limited to letters only. We can give any name we
|
||||
want to the mapping. Also, we can create a mapping to a local folder on our
|
||||
computer.
|
||||
|
||||
For example, we can create a mapping to our log folder with:
|
||||
|
||||
1. New-PSDrive -Name Log -PSProvider FileSystem -Root c:\temp\logfiles -DescrCiopptiyon
|
||||
|
||||
"Log Folder"
|
||||
|
||||
This way we can quickly navigate to the log files with cd log: . But we can not only
|
||||
navigate to the folder, we now also reference the mapping in other cmdlets. For
|
||||
|
||||
×example:
|
||||
|
||||
4 von 13 20.02.2024, 15:32
|
||||
New-PSDrive - How to use PowerShell Net Use alternative https://lazyadmin.nl/powershell/new-psdrive/
|
||||
1. Get-ChildItem log:
|
||||
Copy
|
||||
|
||||
new-PSDrive
|
||||
|
||||
Creating a persistent mapping to a local folder
|
||||
|
||||
Temporary mappings are gone after you close the PowerShell window. There is no
|
||||
option to store mappings to local folders with New-PSDrive. But when you need to
|
||||
access a long folder path often from PowerShell then you could add the cmdlet to
|
||||
your PowerShell Profile. This way the mapping will be recreated every time you open
|
||||
PowerShell.
|
||||
|
||||
First, open your profile: Copy
|
||||
|
||||
×1. ise $profile 20.02.2024, 15:32
|
||||
|
||||
5 von 13
|
||||
New-PSDrive - How to use PowerShell Net Use alternative https://lazyadmin.nl/powershell/new-psdrive/
|
||||
|
||||
If you get an error that your profile is not found, then follow this article to quickly
|
||||
create one.
|
||||
|
||||
In your PowerShell profile add the following line:
|
||||
|
||||
1. # Create shotcuts to long folder paths Copy
|
||||
|
||||
2. New-PSDrive -Name Log -PSProvider FileSystem -Root c:\temp\logfiles -Description
|
||||
|
||||
"Log Folder" | Out-Null
|
||||
|
||||
Note that we added | Out-Null to the cmdlet. By default, the cmdlet will output the
|
||||
results of the drive mapping. But we don’t want that every time when we open a new
|
||||
PowerShell session.
|
||||
|
||||
Mapping Registry keys with New-PSDrive
|
||||
|
||||
Besides mapping network drives and folders, we can also map registry keys with the
|
||||
New-PSDrive cmdlet. By default, you will find already a mapping to the
|
||||
HKEY_CURRENT_USER key and HKEY_LOCAL_MACHINE key. You can few these with
|
||||
the command:
|
||||
|
||||
1. Get-PsDrive -PSProvider Registry Copy
|
||||
|
||||
2.
|
||||
|
||||
3. # Result
|
||||
|
||||
4. Name Used (GB) Free (GB) Provider Root
|
||||
× CurrentLocation
|
||||
|
||||
6 von 13 20.02.2024, 15:32
|
||||
New-PSDrive - How to use PowerShell Net Use alternative https://lazyadmin.nl/powershell/new-psdrive/
|
||||
|
||||
5. ---- --------- --------- -------- ----
|
||||
HKEY_CURRENT_USER
|
||||
--------------- Registry HKEY_LOCAL_MACHINE
|
||||
Registry
|
||||
6. HKCU
|
||||
|
||||
7. HKLM
|
||||
|
||||
If you want to create a mapping to the HKEY_USERS hives you can do the following:
|
||||
|
||||
1. New-PSDrive -Name HKU -PSProvider Registry -Root HKEY_USERS Copy
|
||||
|
||||
We are not limited to the top-level registry gives, you can create mappings to any
|
||||
registry key you want. For example, the HKCU Windows NT key:
|
||||
|
||||
1. New-PSDrive -Name WinNT -PSProvider Registry -Root Copy
|
||||
HKEY_CURRENT_USER\Software\Microsoft\Windows NT
|
||||
|
||||
You can now easily add, edit or remove registry keys using the create mapping:
|
||||
|
||||
1. # WinNT: is the mapping that we created earlier Copy
|
||||
2. New-Item –Path WinNT: –Name LazyAdmin
|
||||
|
||||
Wrapping Up
|
||||
|
||||
To be honest, there is little advantage to using the New-PSDrive if you only want to
|
||||
map a network share that is also available in Explorer. The Net-Use command is
|
||||
|
||||
×shorter and more convenient to use.
|
||||
|
||||
7 von 13 20.02.2024, 15:32
|
||||
New-PSDrive - How to use PowerShell Net Use alternative https://lazyadmin.nl/powershell/new-psdrive/
|
||||
|
||||
But when you only need to create a mapping in a PowerShell session, or when you
|
||||
want to create a shortcut to local folders or the registry, then the cmdlet can be quite
|
||||
useful.
|
||||
|
||||
If you have any questions, just drop a comment below!
|
||||
|
||||
Did you Liked this Article?
|
||||
|
||||
Get the latest articles like this in your mailbox
|
||||
or share this article
|
||||
|
||||
First name (optional) Email address
|
||||
|
||||
Subscribe
|
||||
|
||||
I hate spam to, so you can unsubscribe at any time.
|
||||
|
||||
× 20.02.2024, 15:32
|
||||
|
||||
You may also like the following articles
|
||||
|
||||
8 von 13
|
||||
New-PSDrive - How to use PowerShell Net Use alternative https://lazyadmin.nl/powershell/new-psdrive/
|
||||
|
||||
Feb 12, 2024
|
||||
|
||||
How to use Connect-MgGraph – All Options
|
||||
|
||||
Feb 5, 2024 20.02.2024, 15:32
|
||||
|
||||
How to Install PowerShell 7 Quickly
|
||||
|
||||
×
|
||||
|
||||
9 von 13
|
||||
New-PSDrive - How to use PowerShell Net Use alternative https://lazyadmin.nl/powershell/new-psdrive/
|
||||
|
||||
Feb 1, 2024
|
||||
|
||||
How to Set an Environment Variable in PowerShell
|
||||
|
||||
Leave a Comment 20.02.2024, 15:32
|
||||
|
||||
×
|
||||
|
||||
10 von 13
|
||||
New-PSDrive - How to use PowerShell Net Use alternative https://lazyadmin.nl/powershell/new-psdrive/
|
||||
|
||||
2. Get MFA Status with Microsoft Entra
|
||||
|
||||
Recommended article
|
||||
|
||||
IT & Office 365 Related
|
||||
1. Best Practice to Secure Office 365 Popular
|
||||
2. Check Domain Controller Health New
|
||||
3. Microsoft Office 365 Plans compared
|
||||
4. Get MFA Status Office 365 users Updated
|
||||
5. Automatically assign licenses in Office 365
|
||||
Home Network
|
||||
1. Best Switches for Home Network New
|
||||
2. UniFi Cloud Controller
|
||||
3. How to set up your home network
|
||||
4. Unifi Access Points Compared Updated
|
||||
5. Unifi Dream Machine Pro Review
|
||||
6. Home Network Wiring Guide
|
||||
Smart Home
|
||||
1. 20 Best Smart Home Gift new
|
||||
2. Getting started with your Smart Home
|
||||
3. Best Smart Home Kit
|
||||
|
||||
×
|
||||
LazyAdmin.nl is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to
|
||||
provide a means for sites to earn advertising fees by advertising and linking to Amazon.com and other sites. LazyAdmin.nl is
|
||||
compensated for referring traffic or business to these companies at no expense to you. Your support helps running this
|
||||
|
||||
12 von 13 20.02.2024, 15:32
|
||||
New-PSDrive - How to use PowerShell Net Use alternative https://lazyadmin.nl/powershell/new-psdrive/
|
||||
|
||||
website and I genuinely appreciate it. I always try to make my reviews, articles and how-to's, unbiased, complete and based
|
||||
on my own expierence.
|
||||
|
||||
Terms and Conditions | Disclaimer | Privacy Policy
|
||||
© 2024 Pixel Supply B.V.
|
||||
|
||||
Update Privacy Preferences
|
||||
A RAPTIVE PARTNER SITE
|
||||
|
||||
× 20.02.2024, 15:32
|
||||
|
||||
13 von 13
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user