I am running a bat (Repointer.bat) file which has just a single line - RepointerUI.exe /s /i “srps.xml”.
RepointerUI.exe - It gets certain values from srps.xml. So I am passing this as a parameter. If not given, it will prompt us to enter the values.
If I execute the bat file through Command Prompt, it works fine (without prompting for any values)
If I execute the same bat file through Bigfix, it is not working (The bat file is not actually getting executed and the status in the BigFix is not changing from “running” to “completed”)
I tried running the RepointerUI.exe through BigFix with the command - (wait “C:\RepointerUI.exe” /s /i “srps.xml”)
Please help me in finding out what could be the problem.
No. It doesnot use any relative paths. Both the files are in “C:”
The exe is a windows application (C#.net). I created another windows application and executed it in the same way (silent mode), again the same problem. Should I execute the windows application in a different way then?
I tried that (given in the link), after entering the command it gives the message “Added new job with JOB ID = 1” but doesn’t pop up any window. I even ran AT command, it says “Today” only. Does it mean it has SYSTEM account issue?
At this point, I am not sure… The application appears to be executing properly and after the application launches, it is just like any other application that you launch. The only difference that I can think of is that the Agent launches it as the SYSTEM account and so I recommend troubleshooting whether your application can’t run as the SYSTEM account.
Finally I could resolve the issue. It’s something with the application I am executing. The application inturn accesses an external file which is in the same location as the application (say C:\Program files\RepointerTool").
Instead of running wait “C:\program files\Repointer tool\Repointer.bat”
if i do
dos cd “C:\program files\Repointer tool”
wait “C:\program files\Repointer tool\Repointer.bat” .it works fine. otherwise the application could not find the exteranl file.
Thanks for your continuous help.
I will get back to you, if I face any other problems