How to initialize UGMGR in command line?

Hello All,
My task is to initialize managed NX(UGMGR.initialize), open the given part, do some operations in NX, save back to teamcenter and terminate the connection. I have a sample code to initialize ugmgr and terminate. I'm well aware of the ugmgr API's. The issue I'm facing it is to set the required environmental variables. Can anyone let me know what are the variables I need to set for a 2 Tier teamcenter and command line arguments I need to pass to the EXE to successfully run the application in batch mode. I'm using NX8.5 and TC 2T 10. Thanks in advance.

Hi Harsha ,

Sorry I am not able to reply your query, but from your post it seems you are well aware of NX Customization in Teamcenter.

I am stuck with a problem - I want to run NX journal having image within winform, but dont know how to give a path-how to call an image from teamcenter. I tried to embed it within the code but did not success.

You can refer the following convo.'s last comments
http://www.nxjournaling.com/comment/4480#comment-4480

Please help me if you can.

Thanks & Regards,
Vivek