TheCrowX Posted August 29, 2004 Share Posted August 29, 2004 hi i tried everything but i couldn t delete the shortcutsI think i know where the problem comes from but i don t know how to fix it this is wha I write in my batch file ECHO.ECHO Removing useless shortcuts...DEL "%systemdrive%\Documents and Settings\All Users\Menu Démarrer\Assistance à distance.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Démarrer\Windows Update.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Démarrer\Catalogue Windows.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Menu Démarrer\Configurer les programmes par défaut.lnk"the problem is that I use a french Windows XP "Start Menu" in french is "Menu Démarrer" but when i execute the batch file i got "Menu dÚmarrer" so how can i Fix it PleaseThanx in Advance Link to comment Share on other sites More sharing options...
mazin Posted August 29, 2004 Share Posted August 29, 2004 First, you can shorten your strings as follows:From:DEL "%systemdrive%\Documents and Settings\All Users\Menu Démarrer\Assistance à distance.lnk"To:DEL "%AllUsersProfile%\Menu Démarrer\Assistance à distance.lnk"However, you can try this:DEL "%AllUsersProfile%\Menu Démarrer\Assistance*.lnk"I'm not sure if it should work for you.EDIT 1: And since they're all in the same place where you want to clean the top area of Start Menu, you can use this instead:DEL "%AllUsersProfile%\Menu Démarrer\*.lnk"EDIT 2: Also, what about this:SET StartMenu=%AllUsersProfile%\Menu DémarrerDEL "%StartMenu%\*.lnk" Link to comment Share on other sites More sharing options...
TheCrowX Posted August 29, 2004 Author Share Posted August 29, 2004 I tried all the Method But the problem Is it couldn t Access "menu démarrer" Folder i think windows on command prompt can t read "é" it keeps saying c:......\\\\\menu dumarrer\... path is incorrect it changes the "é" into u ??so is there anything else i can do ?? Link to comment Share on other sites More sharing options...
mazin Posted August 29, 2004 Share Posted August 29, 2004 Really sorry! I hope a French guy could come and help.Good luck. Link to comment Share on other sites More sharing options...
Lucius Snow Posted August 29, 2004 Share Posted August 29, 2004 Hello,Try that :del /f /s /a C:\Docume~1\%username%\Menudm~1\Progra~1\assist*.lnkdel /f /s /a "%allusersprofile%\Menudm~1\Windows Update.lnk" del /f /s /a "%allusersprofile%\Menudm~1\Config~1.lnk" del /f /s /a "%allusersprofile%\Menudm~1\Catalogue Windows.lnk" Link to comment Share on other sites More sharing options...
eagle00789 Posted August 29, 2004 Share Posted August 29, 2004 this is a common problem with batchfiles. they use a DOS approach, thus meaning that any wierd character like that é will be transformded to that stupid U. I had that same problem, and the solution will look a bit stupid, but it works. look at this thread Link to comment Share on other sites More sharing options...
minigun Posted August 30, 2004 Share Posted August 30, 2004 i had the same problem with my batch file not finding the links i wanted to delete eve tho it tested working from within windows :-\ (i use english windows ) Link to comment Share on other sites More sharing options...
mazin Posted August 30, 2004 Share Posted August 30, 2004 i had the same problem with my batch file not finding the links i wanted to delete eve tho it tested working from within windows :-\ (i use english windows )A reason behind your problem may be that those shortcuts weren't created yet before you executed the deletion.If you put a sleep interval of about 10 seconds or less in your batch, it should work fine. Link to comment Share on other sites More sharing options...
eagle00789 Posted August 30, 2004 Share Posted August 30, 2004 I Know, but this was a very different problem.the folder was there, but the batchfile changed 1 character Link to comment Share on other sites More sharing options...
ToBe Posted August 30, 2004 Share Posted August 30, 2004 Open up a command-prompt and type edit. Change your cmdfile from within that application, and it should work... Thats how I got some of my swedish characters to be understood by the command files. Link to comment Share on other sites More sharing options...
_Shorty Posted August 31, 2004 Share Posted August 31, 2004 you can probably use a question mark for that character too. That's a wildcard for just a single character.Menu D?marrer 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