Hi,
I was trying to use DCOM to execute a .exe in a remote computer(let´s say, notepad.exe) in this way:
I have made an Active X exe with a class that has only one method:
Public Sub LaunchNotepad()
Shell "notepad.exe", vbNormalFocus
End Sub
Next, I instantiate (from a client .exe running on computer A) an object of this class running in computer B (server), and I call its LaunchNotepad method. The notepad.exe process starts in computer B, but it runs in background (you can see Notepad.exe in the Task Administrator (processes) of Windows 2000. My problem is that I want to make it visible in computer B. How could I do it? I have tried to use the API (FindWindow and ShowWindow), but they don´t work ok.
Thanks,
Aitor.
I was trying to use DCOM to execute a .exe in a remote computer(let´s say, notepad.exe) in this way:
I have made an Active X exe with a class that has only one method:
Public Sub LaunchNotepad()
Shell "notepad.exe", vbNormalFocus
End Sub
Next, I instantiate (from a client .exe running on computer A) an object of this class running in computer B (server), and I call its LaunchNotepad method. The notepad.exe process starts in computer B, but it runs in background (you can see Notepad.exe in the Task Administrator (processes) of Windows 2000. My problem is that I want to make it visible in computer B. How could I do it? I have tried to use the API (FindWindow and ShowWindow), but they don´t work ok.
Thanks,
Aitor.