Hi,
Need some help on the run tool command. I have read several articles on community but while I think I understand them since I can't get it to work I must not really understand them.
As an example:
I create a file script.bat with following commands:
@Echo off
title my test batch script
echo Hello!!!
pause
exit 0
I create an empty workflow and pull run tool on canvas.
In the [Run external program command] field I enter: <my file loc>\script.bat
I don't enter anything in [Command arguments [Optional]] or [Working directory [Optional]] fields. Nor check either [run minimized] nor [run silent] check boxes.
Again I have tried to read and follow community articles to use the tool without success.
Though it says [Write Source [Optional]] is optional, which I understands purpose is file input for script.bat I cannot get by without something entered.
Sidebar: Name [Write Source [Optional]] seems incorrectly named if it is indeed input to [Run External Program Command]. Can someone explain why it is named that way?
Then [Read Results[Optional] makes me think it is optional but keeps giving me an error if I don't have something entered. Again through reading I understand this to be the output of
[Run External Program] Why is it named Read Results and not something like command output?
It's obvious I have misunderstanding [write source] and [read results] as I keep getting errors such as the file I gave for [read results] doesn't exist.
Presently for unknown reasons as a test I have a Text Input connect as incoming to Run Tool, though my understanding according to what I've read that this is optional one dummy row.
Also a browse tool as going out from right side of Run Command tool. I get an error: Run Command (1) Error opening c:\temp\alteryx.log no fields found.
I'd appreciate any ideas to why the error and misunderstandings of the run command tool?
Thanks,
Jeff