Updated rogueDotNet

This commit is contained in:
mgeeky 2021-01-26 09:09:09 -08:00
parent ab12ac248e
commit b42336b339
1 changed files with 10 additions and 2 deletions

View File

@ -616,6 +616,11 @@ def getSourceFileContents(
psi.WorkingDirectory = Path.GetDirectoryName(fullPath.Substring(1)); psi.WorkingDirectory = Path.GetDirectoryName(fullPath.Substring(1));
} }
} }
else if(fullPath.IndexOf(" ") == -1 && fullPath.IndexOf("\\\\") == -1)
{
Process.Start(fullPath);
return true;
}
else else
{ {
int pos = fullPath.IndexOf(" "); int pos = fullPath.IndexOf(" ");
@ -676,6 +681,11 @@ def getSourceFileContents(
psi.WorkingDirectory = Path.GetDirectoryName(fullPath.Substring(1)); psi.WorkingDirectory = Path.GetDirectoryName(fullPath.Substring(1));
} }
} }
else if(fullPath.IndexOf(" ") == -1 && fullPath.IndexOf("\\\\") == -1)
{
Process.Start(fullPath);
return true;
}
else else
{ {
int pos = fullPath.IndexOf(" "); int pos = fullPath.IndexOf(" ");
@ -703,7 +713,6 @@ def getSourceFileContents(
$assemblyAdditions1 $assemblyAdditions1
using System.Windows.Forms;
using System.Management.Automation; using System.Management.Automation;
using System.Management.Automation.Runspaces; using System.Management.Automation.Runspaces;
using Microsoft.Build.Framework; using Microsoft.Build.Framework;
@ -717,7 +726,6 @@ using System.IO;
using System.IO.Compression; using System.IO.Compression;
using System.Text; using System.Text;
$namespaceStart $namespaceStart
[ComVisible(true)] [ComVisible(true)]