Skip to content

Commit

Permalink
Fix paste into root dir
Browse files Browse the repository at this point in the history
  • Loading branch information
eltos committed Dec 16, 2021
1 parent 01fa37f commit d6634e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions PasteIntoFile/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ static void Main(string[] args)

return;
}

Application.Run(new frmMain(args[0], args.Length > 1 ? args[1] : null));

var location = args[0].Trim().Trim("\"".ToCharArray()); // remove trailing " fixes paste root dir
var filename = args.Length > 1 ? args[1] : null;
Application.Run(new frmMain(location, filename));
}
else
{
Expand Down

0 comments on commit d6634e4

Please sign in to comment.