You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every time I close Bulk Crap Uninstaller, a console window pops up unable to run tasklist on windows. I know the issue here.
The problem is that tasklist command comes from an application in system32. Trying to call the command at a different location will not work. The solution is to change the directory to system32 so that it can run appropriately.
My fix was just adding cd /D C:\Windows\System32 before we call tasklist, but we have to keep in mind that not everyone's os will reside on the C drive. I am not sure how to get the OS drive in Batch Script, but hopefully you guys come up with a brilliant solution!
The text was updated successfully, but these errors were encountered:
If getting the OS drive isn't viable, then copying the executable that allows you to use tasklist inside where your Batch file is, then that tasklist should work if the directory command prompt is in is where the batch file is.
Every time I close Bulk Crap Uninstaller, a console window pops up unable to run tasklist on windows. I know the issue here.
The problem is that tasklist command comes from an application in system32. Trying to call the command at a different location will not work. The solution is to change the directory to system32 so that it can run appropriately.
My fix was just adding
cd /D C:\Windows\System32
before we call tasklist, but we have to keep in mind that not everyone's os will reside on the C drive. I am not sure how to get the OS drive in Batch Script, but hopefully you guys come up with a brilliant solution!The text was updated successfully, but these errors were encountered: