September 14, 200322 yr Is there any way you can remove start menu shortcuts unattended? Like windows update, windows catalog, etc
September 14, 200322 yr Insert something like this in the batch file:ECHO Removing useless shortcuts...DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Update.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Set Program Access and Defaults.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Catalog.lnk"ECHO.
September 14, 200322 yr Yes. In your main batch file, set these command lines.ECHO Removing useless shortcuts...DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Update.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Set Program Access and Defaults.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Catalog.lnk"ECHO.(Credit goes to whoever originally posted that, I think it was webmedic)
September 14, 200322 yr Don't you also need to add this this switch for deleting read only filesDEL /FThe /F is to force to delete read-only files to be on the safe side?-Kenneth
September 14, 200322 yr Remember you can add your own lines to the batch to delete other icons and shortcuts too. Furthermore, you can create certain ones you want for your desktop too. Just save a .lnk file on your unattended CD and have a batch copy it to your desktop. Just make sure you set up the .lnk file correctly. This way you can have your own customized Program menu and desktop.
Create an account or sign in to comment