Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove programs from Windows startup with a .bat file

I am trying to create a .bat file that removes applications from Startup in Windows 10. What I am trying to achieve is that after the .bat file has been executed these apps are removed and won't start automatically the next time Windows boots. I have also integrated other functions in this file, but this is the only one that I am having trouble with. I am aware that this can be done in msconfig. I just need the .bat file to do it.

Can I use wmic? Or maybe I should just remove the programs from C:\Users(User-Name)\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

I am sorry if there are other similar topics and if you think that my question matches exactly, please link those threads.

Thank you in advance.

like image 656
user4421334 Avatar asked Feb 14 '26 21:02

user4421334


1 Answers

Try:

@echo off    
del "C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\<filename>"
pause

the Difference is these: " cause StartMenu needs to be written like this Start Menu. Hope this Help (i know im late)

like image 181
Subgaming Avatar answered Feb 17 '26 15:02

Subgaming



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!