Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CleanLogs.bat does not function properly #694

Open
InTheProcess opened this issue Jan 21, 2025 · 0 comments
Open

CleanLogs.bat does not function properly #694

InTheProcess opened this issue Jan 21, 2025 · 0 comments

Comments

@InTheProcess
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant