- Posts: 21
cmd for initiating fhd-definition via FHBatch modu
- Andrew Wojciak
- Topic Author
- Offline
- User
Less
More
9 years 7 months ago #2366
by Andrew Wojciak
cmd for initiating fhd-definition via FHBatch modu was created by Andrew Wojciak
I have created a .fhd definition/adapter
Next, I want to use cmd script to run adapter but for some reason is not working.
My .fhd definition is for Text-to-Text and when I run it manually using a 'DoWork'screen, there is always check-mark on "Test run, read-only no changes to output" Does it mean this .fhd definition will always run in a Test mode and cannot be autorun?
Any suggestions why?
Attached is my .fhd definition
My cmd is like this:
@echo off
REM adapt the following to the actual path of FHBatch.exe
set FHBATCH="d:\FlowHeaterV3\FHBatch.exe"
REM set the path and file name you can use wildcards
set FILES=d:\SFTP\daimleredi\ImportForecast\DTNA_FOREtestCAST_FH.txt
REM Check whether file available
if exist %FILES% goto IMPORT
echo No files available
goto END
:IMPORT
%FHBATCH% /ReadFileName %FILES% d:\FlowHeaterV3\Adapters\DTNA_FORECAST to FH_FORECAST_040715_wOUT_spaces.fhd
:END
echo END
Next, I want to use cmd script to run adapter but for some reason is not working.
My .fhd definition is for Text-to-Text and when I run it manually using a 'DoWork'screen, there is always check-mark on "Test run, read-only no changes to output" Does it mean this .fhd definition will always run in a Test mode and cannot be autorun?
Any suggestions why?
Attached is my .fhd definition
My cmd is like this:
@echo off
REM adapt the following to the actual path of FHBatch.exe
set FHBATCH="d:\FlowHeaterV3\FHBatch.exe"
REM set the path and file name you can use wildcards
set FILES=d:\SFTP\daimleredi\ImportForecast\DTNA_FOREtestCAST_FH.txt
REM Check whether file available
if exist %FILES% goto IMPORT
echo No files available
goto END
:IMPORT
%FHBATCH% /ReadFileName %FILES% d:\FlowHeaterV3\Adapters\DTNA_FORECAST to FH_FORECAST_040715_wOUT_spaces.fhd
:END
echo END
Attachments:
Please Log in or Create an account to join the conversation.
- Andrew Wojciak
- Topic Author
- Offline
- User
Less
More
- Posts: 21
9 years 7 months ago #2367
by Andrew Wojciak
Replied by Andrew Wojciak on topic cmd for initiating fhd-definition via FHBatch modu
I was able to solve it. No cmd code needed. Simply schedule in Task Scheduler and I make sure program=>link to FHBatch.exe and argument is => link to .fhd file.
Please Log in or Create an account to join the conversation.
Time to create page: 0.247 seconds