martinss Posted May 7, 2007 Share Posted May 7, 2007 Hello people, i have two problems :/I like delete this shorcuts when my system started for first time:in my delete.cmd have thisECHO.ECHO Eliminando accesos directos...DEL "%systemdrive%\Documents and Settings\All Users\Menu Inicio\Asistencia remota.lnk"DEL "%systemdrive%\Documents and Settings\Administrador\Menu Inicio\Asistencia remota.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Inicio\POWERPOINT presentacion.lnk"DEL "%systemdrive%\Documents and Settings\Administrador\Menu Inicio\POWERPOINT presentacion.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Inicio\ACCESS base de datos.lnk"DEL "%systemdrive%\Documents and Settings\Administrador\Menu Inicio\ACCESS base de datos.lnk"but don't work.. not remove anything try with .BAT file but don't worki have Windows XP SP2 in spanishHelp! Link to comment Share on other sites More sharing options...
FrankE9999 Posted May 7, 2007 Share Posted May 7, 2007 make sure you have the path rignt. type dir "%systemdrive%\Documents and Settings\All Users\Menu Inicio\Asistencia remota.lnk"if you get "The system cannot find the file specified." then the path is wrong.use the /F /Q option with delete to delete read only files.del /F /Q "C:\Documents and Settings\All Users\Start Menu\Programs\TextPad.lnk"ALLUSERSPROFILE=C:\Documents and Settings\All Users so you could writedel /F /Q "%ALLUSERSPROFILE%\Start Menu\Programs\TextPad.lnk"I like to check that a link exists before deleting it.if exist "%ALLUSERSPROFILE%\Start Menu\Programs\TextPad.lnk" del /F /Q "%ALLUSERSPROFILE%\Start Menu\Programs\TextPad.lnk" Link to comment Share on other sites More sharing options...
oldo Posted May 10, 2007 Share Posted May 10, 2007 you might want to delete these from the default profile during the RunOnceEx stage of setup to. Otherwise any new profile that is created will inherit its start menu items from there. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now