This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM Program: kill.bat | |
REM Purpose: Kill process boring autodesk | |
REM Author: Chuong.Ho | |
REM Date: 2022-11-24 | |
REM Version: 1.0 | |
REM | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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