Skip to content

Instantly share code, notes, and snippets.

Last active November 24, 2022 14:33
What would you like to do?
REM Program: kill.bat
REM Purpose: Kill process boring autodesk
REM Author: Chuong.Ho
REM Date: 2022-11-24
REM Version: 1.0
REM get all process
tasklist /fo csv > process.csv
REM show process.csv
type process.csv
REM get process name AutodeskDesktopApp.exe and DesktopConnector.Applications.Tray.exe
findstr "AutodeskDesktopApp.exe" process.csv > process1.csv
findstr "DesktopConnector.Applications.Tray.exe" process.csv >> process2.csv
REM show process_name.csv
type process1.csv
type process2.csv
REM KILL process
taskkill /f /im "AutodeskDesktopApp.exe"
taskkill /f /im "DesktopConnector.Applications.Tray.exe"
del process1.csv
del process2.csv
Get-Process | Where-Object {$_.ProcessName -like "*AutodeskDesktopApp*" -or $_.ProcessName -like "*DesktopConnector*"} | Stop-Process -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment