Create a HTML file on Desktop with top 10 process running on your system, if that file already exists on Desktop it will give prompt to user to recreate that file.
#Name: Richa Sharma
#Create a HTML file on Desktop with top 10 process running on your system, if that file already #exists on Desktop it will give prompt to user to recreate that file.
#Action required: Change the path <Desktop path name> according to your requirement.
$path="C:\Users\azuser84\Desktop\process.html"
$isFilesExists = Test-path $path
if($isFilesExists -eq $true)
{
$ans= Read-Host "Do you want to recreate
(Y/N)"
if($ans -eq "Y")
{
Remove-Item -Path
$path
}
Else
{
}
}
Else{
}
Comments
Post a Comment