Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automate Remote connection Manager actions
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi,

I'm new to qtp and this question might sound silly but I would like to give it a try....I would like to know if it is possible to automate the actions that can be performed on Remote connection manager(RCman).For instance I would like to connect to a remote machine through RCMan.

Please pour in your thoughts.


Thanks in advance.

Regards,
iltgmds
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Yes we can using different option.

1) Command prompt
2) RCman object

Please let me know if you need any more information.
Thanks,
SUpputuri
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi supputuri,

Thank you so much for responding.Could you please elaborate on how to achieve this for at least one action.Or if you could guide me with the RCman object model, that helps me.

Regards,
iltgmds
Reply
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi Supputuri,

Can you please guide me with rcman object or command promp please?

Regards,
iltgdms
Reply
#5
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi Supputuri,

Can you please guide me with rcman object or command promp please?

Regards,
iltgdms
Reply
#6
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi Sorry for the late replay.

Command Prompt:
Code:
strRemoteBox = InputBox ("Enter your remotebox name or IP")

Dim Owshel
Set Owshell = CreateObject("WScript.Shell")
Owshell.Run "mstsc /v:" & strRemoteBox
Set Owshell = Nothing

We can run the command line without using Shell object, but we have to use the DP for the same.

Code:
strRemoteBox = InputBox ("Enter your remotebox name or IP")
'Close all open command windows (this step will execute without error even no command windows exist)
SystemUtil.CloseProcessByName ("cmd.exe")
'Open the command window using systemUtil
SystemUtil.Run "cmd"
'Now you can enter the command line
Window("regexpwndclass:=ConsoleWindowClass").Type "mstsc /v:" & strRemoteBox

please let me know if you need any further info.
Thanks,
SUpputuri
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Remote Commuter License pin001 0 1,521 01-08-2019, 07:52 AM
Last Post: pin001
  [UFT] Connection String for Oracle robertosalemi 6 12,297 01-15-2016, 04:51 PM
Last Post: robertosalemi
  DB2 Connect connection with IE 11 SRP 1 2,621 12-18-2015, 12:41 PM
Last Post: vinod123
  IBM DB2 connection with VB script bmurali 2 10,917 12-18-2015, 12:38 PM
Last Post: vinod123
  Connection with HP ALM hachem 0 2,626 02-26-2015, 04:36 PM
Last Post: hachem

Forum Jump:


Users browsing this thread: 1 Guest(s)