I want to run a batch file to connect to cognos.
I am using the following link:
http://localhost:9400/p2pd/servlet/dispatch?b_action=xts.run&m=portal/main.xts&CAMUsername=XYZ&CAMPassword=****&h_CAM_action=logonAs
When I run this link in the browser it works. However when i run it in command prompt or in a batch file using "START" command, it opens the cognos window and prompts me to enter my credentials again.
Can anyone please help me with this.
Thanks!
Try using using 'runas'
Run mycommand.exe as the user Jdoe on domain SS64dom
Runas /user:SS64Dom\jDoe "mycommand.exe"