CLEAN.BAT → CLEAN.ps1

This commit is contained in:
Connection Refused
2020-05-07 21:26:33 +08:00
parent 08524f08f3
commit 53e847ce1d
2 changed files with 21 additions and 3 deletions

View File

@@ -1,3 +0,0 @@
@ECHO OFF
RD /S /Q Netch\bin > NUL 2>&1
RD /S /Q Netch\obj > NUL 2>&1

21
CLEAN.ps1 Normal file
View File

@@ -0,0 +1,21 @@
if (Test-Path Netch\bin)
{
Remove-Item -Recurse -Force Netch\bin
}
if (Test-Path Netch\obj)
{
Remove-Item -Recurse -Force Netch\obj
}
if (Test-Path NetchLib\bin)
{
Remove-Item -Recurse -Force NetchLib\bin
}
if (Test-Path NetchLib\obj)
{
Remove-Item -Recurse -Force NetchLib\obj
}
exit 0