Macro to open \\hostname\c$ in windows explorer

Macro to open \\hostname\c$ in windows explorer

avatar

Hi,

I'm trying to create a macro (or something else that works like that)
that if i select a host entry (RDP session) and right click delete macro it will open in windows explorer

\server\c$

meaning the c$ of the server selected.

Try to use the CMD macro but i cannot pass in the arguments the hostname tried something like that
explorer.exe "\{hostname}\c$"

any ideas ?

Many thanks
Vassilis


RDM for Windows 11
Purchased Enterprise Edition v2024.x

All Comments (5)

avatar

Hello Vassilis,

it should work with the following variable:

\$HOST$\c$

Attached you'll find a working sample session.

The full set of available variables you'll find here

Regards,
Min

explorer.rdm

avatar

perfect, it works !
i was looking for that variable page but couldn't find it :)


RDM for Windows 11
Purchased Enterprise Edition v2024.x

avatar

Perfect, thanks for your feedback ;)

PS: it is also possible to open the variables directly from the session - you'll find the button in the left bottom of the session properties


Regards,
Min

avatar

wow! again, didn't know that :D

Thanks Min, Happy Holidays!


RDM for Windows 11
Purchased Enterprise Edition v2024.x

avatar

You're welcome! :cool:

Thanks, and same to you ;)

Regards,
Min