Hi!
i have an issue where WF script (c#) doesn't execute a .bat file as i expect.
My workflow runs a .bat file (eg. c:\script\runthis.bat)
This .bat runs a powershell script (eg c:\script\test.ps1) and some copy/del operations.
When i run it manually, it works fine. (dclick in explorer)
If i run it from the script editor and manually put in the tokens, it runs fine.
If i run the whole WF, the commands to copy or delete run fine, but the powershell one does nothing.
i can't see any errors (but assume it must be getting one, its like it just skips the line).
I suspect its something to do with the location of the files / user who launches it.
I'm logged in as the administrator, so i changed the WF service to use the same account and got the same result.
Does anyone know what i'm doing wrong?
Thanks
Mark