Hi Henrik
Yes, the Exe is running on Server 2, and the 'Execute Task' is defined on Server 2.
Yes, the System Environment Variable is defined on Server 2 from the Exe running on Server 2
Correct, on Server 2 the EXE doesn't recognise environment variables if it is triggered from Server 1. The VC Task 'Execute' is defined on Server 2. The Exe is a third party executeable and it uses the OEM codepage (which is 850) (if that's what you mean?). The VC Execute Task itself is using Windows-1252 encoding.
What is REALLY strange is that this executable is triggered by a simple Trigger file written from Server 1, so Server 1 writes a trigger file to server 2, which invokes the Execute Task. This runs the EXE but it fails because it can't read the environment variables. However, if I manually run the Execute Task on Server 2 (right click/execute task), it works fine!
So it seems to be something to do with the trigger file?
Incidentally - this is only a problem with the EXECUTE task - if I replace it with a DOS BATCH file which calls the executable, it works fine. Also the same if I call the exe with a Powershell script.....
Cheers
Andy
Edited by user
2011-11-09T10:29:09Z
|
Reason: Not specified