From 472421f59cb7096cac309bef0ea06bd8dba3cb6d Mon Sep 17 00:00:00 2001 From: NYAN CAT Date: Thu, 30 May 2019 10:23:34 +0300 Subject: [PATCH] Create new folder for remote desktop --- AsyncRAT-C#/AsyncRAT-Sharp/Forms/FormRemoteDesktop.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/FormRemoteDesktop.cs b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/FormRemoteDesktop.cs index cede735..9e63f8a 100644 --- a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/FormRemoteDesktop.cs +++ b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/FormRemoteDesktop.cs @@ -118,9 +118,14 @@ namespace AsyncRAT_Sharp.Forms { timerSave.Start(); btnSave.BackgroundImage = Properties.Resources.save_image2; - string fullPath = Path.Combine(Application.StartupPath, "ClientsFolder\\" + C.ID); - if (Directory.Exists(fullPath)) + try + { + string fullPath = Path.Combine(Application.StartupPath, "ClientsFolder\\" + C.ID + "\\RemoteDesktop"); + if (!Directory.Exists(fullPath)) + Directory.CreateDirectory(fullPath); Process.Start(fullPath); + } + catch { } } } }