Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem in Execution of DCOM Server in Windows 2000.

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am giving you in detail about the problem.

1. I have created a DCOM Server named as DSERVER.EXE in VC++.
2. I have created a DCOM Client named as DCLIENT.EXE in VC++.
3. I am using CreateProcess command in method "executeCMD(BSTR bstrparm)" in DSERVER.EXE to execute a batch file "C:\\WR.BAT"
4. I have installed DSERVER.exe on Machine1 (with Windows NT) and DCLIENT.exe on Machine2 (with Windows NT).
a. Then I have accessed the DSERVER.exe from DCLIENT.exe and the batch file is executing fine.
5. Now I have installed DSERVER.exe on Machine3 (with Windows 2000) and DCLIENT.exe on the same machine Machine2 (with windows NT).
a. Now I have accessed the DSERVER.exe from DCLIENT.exe and the batch file is not executing. Only the process in task manager is showing as CMD.exe, but not executing the content of the batch file. We tried this with other commands like system, ShellExecute and _execl instead of CreateProcess. Still I am getting the same problem.
This problem is only coming with windows 2000. I don't know whether i am doing mistake or its bug.
I am struggling with this problem from past five days.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top