Originally posted by: GerryCullen
This is not a problem unique to WTX, but relates to a known problem with certain older DOS commands. Certain DOS commands (i.e., find, xcopy) will fail when run as a service (or with no stdin/stdout) due to requiring STDIN to be present, even though they require no input in the manner they're being used.
I'm fairly certain that you will be able to resolve this by providing a very basic level of stdin support to XCOPY by echoing a few bytes of data ("echo.") and piping to the command being executed. For example, in your batch file, instead of:
xcopy /c /d /e /k /r /v /y C:\tmp\dir1 C:\tmp\dir2\
try:
echo. | xcopy /c /d /e /k /r /v /y C:\tmp\dir1 C:\tmp\dir2\
For additional details:
Ken Henderson's WebLog - Subtle bugs #2
AutoIt Forums > AutoIt v3 > General Help and Support > StdoutRead, Problem When Compiled
#DataExchange#IBMSterlingTransformationExtender#IBM-Websphere-Transformation-Extender