Skip to content

Commit

Permalink
use sdelete64.exe for 64-Bit OS
Browse files Browse the repository at this point in the history
  • Loading branch information
abyssox committed Nov 4, 2020
1 parent fb34485 commit 72f50bb
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 72f50bb

Please sign in to comment.