Can anyone help me to cratecreate a Windows batch script equivalent of Windows PowerShell script that I wrote. I know what first few lines should be, but I am not shoresure for the rest.
PowerShell Code:
Get-Process -Name Firefox | Stop-Process
Start-Process -FilePath "C:\Program Files\Mozilla Firefox\uninstall\helper.exe" -ArgumentList "-ms" -ErrorAction SilentlyContinue -PassThru | Wait-Process -Timeout 30
Start-Process -FilePath "C:\Program Files (x86)\Mozilla Firefox\uninstall\helper.exe" -ArgumentList "-ms" -ErrorAction SilentlyContinue -PassThru | Wait-Process -Timeout 30
$UserProfiles = Get-ChildItem -Path "C:\Users" -Exclude "Public", "Default"
foreach ($Profile in $UserProfiles) {
Remove-Item -Path "$Profile\AppData\Roaming\Mozilla\Firefox" -Force -Recurse -ErrorAction SilentlyContinue -Confirm:$false
}
Batch Code:
taskill Firefox
"C:\Program Files\Mozilla Firefox\uninstall\helper.exe" -ms
"C:\Program Files (x86)\Mozilla Firefox\uninstall\helper.exe" -ms
...