TCC – Batch file for touchpoints

We always know what fun it is to crawl way back into the past when we knew and were fluent with DOS, ah it certainly brings back nostalgia and I can usually do everything that I need to do but some of it I barely remembered then let alone know. But the internet provides and when setting up batch files for the touchpoints I just need a template so here is the header and import and output samples.

Header:

CLS
@ECHO OFF
TITLE …

REM Ensure the current directory is set.
cd /d "%~dp0"

REM Set the environment variables.
Call Environment.bat
TITLE %~nx0 – %TALEO_HOST% – %date% %time%
set timeStamp=%date:~-4%%date:~4,2%%date:~7,2%%time:~0,2%%time:~3,2%%time:~6,2%
SET timeStamp=%timestamp: =0%

Export:

REM WhatThisDoes
Call core\TCC.bat "%SCRIPTS_FOLDER%\integrationDirectory\cfgFileToProcess" "%SCRIPTS_FOLDER%\integrationDirectory\sqFileToPorcess" "%INBOUND_FOLDER%\resultsFile-%timeStamp%.csv"

Import:

REM WhatThisDoes
Call core\TCC.bat "%SCRIPTS_FOLDER%\integrationDirectory\cfgFileToProcess" "%INBOUND_FOLDER%\inboundCSVFile" "%RESPONSE_FOLDER%\resultsFileName-%timeStamp%.csv"

Footer:

 
REM Exit
Exit /B %ERRORLEVEL%

Comments are closed.