Subhendu code should get the job done. If you are trying it on your own, post your .BAT program and we let you know how to fix it. A word of caution is when running your custom programs like this there may be no recovery if it’s wrong.. You may delete a lot more than you plan on. Why do you want to delete the shortcuts in the first place? They take practically no room and most likely are on the desktop only. You could always group them then do a batch select and delete. It is a safer way.