Skip to content

Commit

Permalink
Merge pull request #12 from abyssox/master
Browse files Browse the repository at this point in the history
use sdelete64.exe for 64-Bit OS
  • Loading branch information
ricardopolo authored Nov 5, 2020
2 parents fb34485 + 72f50bb commit d2c0413
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion SDelete-Gui/SDelete-Gui/ViewModel/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,14 @@ private bool DownloadSdelete(string downloadPath)
{
try
{
client.DownloadFile("https://live.sysinternals.com/sdelete.exe", downloadPath);
if (Environment.Is64BitOperatingSystem)
{
client.DownloadFile("https://live.sysinternals.com/sdelete64.exe", downloadPath);
}
else
{
client.DownloadFile("https://live.sysinternals.com/sdelete.exe", downloadPath);
}
return true;
}
catch
Expand Down

0 comments on commit d2c0413

Please sign in to comment.