MeshCentralRouter icon indicating copy to clipboard operation
MeshCentralRouter copied to clipboard

Change MeshRdpFile.rdp to be the Device Name File.rdp with Mesh Central Router

Open b8two opened this issue 3 years ago • 1 comments

Thank you for all your work on Mesh Central it is an awsome tool.

As I've been using the RDP link via Mesh router, I find that I have multiple windows starting with "MeshRdpFile - 127.0.0.1:" and I can start to see where keeping track of which RDP window is which machine starts getting confusing.

image

Since mstsc.exe appears to put the RDP filename in the title first, I thought that a possibly simple change would be to use "Device Name File.RDP" instead of "MeshRdpFile.rdp" as the File Name when launching a RDP File with Mesh Central Router would improve the experience.

b8two avatar Dec 22 '22 00:12 b8two

MeshRdpFile.rdp is referenced in MapUserControl.cs

            string tfile = Path.Combine(Path.GetTempPath(), "MeshRdpFile.rdp");

The Change should be something along the lines of;

            string tfile = Path.Combine(Path.GetTempPath(), node.name.ToString(), ".rdp");

However might need to add input saintization for charactors in the name that might not be allowed by a name in the file system. (i.e. \ / * )

b8two avatar Jun 24 '24 04:06 b8two

all done! https://github.com/Ylianst/MeshCentralRouter/commit/d2c537139a6cd8aec713ba2a52dbae0630ddb41b give this exe build a try! MeshCentralRouter.zip remember to say NO when it asks if you fancy updating the exe!

si458 avatar Aug 06 '24 11:08 si458