Open remote shell from file manager on correct drive (Fixes #822)

This commit is contained in:
MaxXor 2023-02-11 18:07:37 +01:00
parent 8a481096f3
commit b9da8df8fe
1 changed files with 2 additions and 1 deletions

View File

@ -428,7 +428,8 @@ namespace Quasar.Server.Forms
FrmRemoteShell frmRs = FrmRemoteShell.CreateNewOrGetExisting(_connectClient);
frmRs.Show();
frmRs.Focus();
frmRs.RemoteShellHandler.SendCommand($"cd \"{path}\"");
var driveLetter = Path.GetPathRoot(path);
frmRs.RemoteShellHandler.SendCommand($"{driveLetter.Remove(driveLetter.Length - 1)} && cd \"{path}\"");
}
private void btnOpenDLFolder_Click(object sender, EventArgs e)