Batch file with skip command option in case of error

Add “call” in the beginning of command robocopy, in case robocopy gives access denied error. cls@echo off set CD=%PWD% call robocopy “\Lsfs01\files\GROUP\LFCU\DMSUploads\TrxDocs\newdocs\Nancy Durazo” “\lfcunas01\AccountProcess\TrxDocs\newdocs\Nancy Durazo” *.pdf /MOV /Eecho First robocopy completed with errorlevel %ERRORLEVEL% call robocopy “\Lsfs01\files\GROUP\LFCU\DMSUploads\TrxDocs\newdocs\Loretta Aguilar” “\lfcunas01\AccountProcess\TrxDocs\newdocs\Loretta Aguilar” *.pdf /MOV /Eecho First robocopy completed with errorlevel %ERRORLEVEL% call robocopy “\Lsfs01\files\GROUP\LFCU\DMSUploads\TrxDocs\newdocs” “\lfcunas01\AccountProcess\TrxDocs\newdocs” *.pdf /MOV…

Read More

FileSplitter Tool – Splitting data file

update the following lines: set “inputFile=C:\path\to\your\input.txt”set “outputFolder=C:\path\to\output”set “linesPerFile=1000” and here is the bat file: @echo offsetlocal :: Set variablesset “inputFile=C:\path\to\your\input.txt”set “outputFolder=C:\path\to\output”set “linesPerFile=1000” :: Create output directory if it doesn’t existif not exist “%outputFolder%” (mkdir “%outputFolder%”) :: Run PowerShell to split the filepowershell -Command ^“$inputFile = ‘%inputFile%’;” ^“$outputFolder = ‘%outputFolder%\’;” ^“$linesPerFile = %linesPerFile%;” ^“$i = 0;”…

Read More

ImageTrust: When trying to use the opener the error message The application did not pass the security self-test and will stop now stop! shows up and the application will not start.

Root Cause The Windows Authenticode Signature Verification is enabled in the system. The opener.exe cannot pass this verification because it contains the URL of the Server, and every time it is downloaded from a different URL the the .exe file is updated with the new URL. This URL is used to download and open the…

Read More