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.
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.