Jump to content

Shortcuts Deleting Impossible


Recommended Posts

hi i tried everything but i couldn t delete the shortcuts

I 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 Please

Thanx in Advance

post-70-1093799795_thumb.jpg

Link to comment
Share on other sites


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émarrer

DEL "%StartMenu%\*.lnk"

Link to comment
Share on other sites

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

Hello,

Try that :

del /f /s /a C:\Docume~1\%username%\Menudm~1\Progra~1\assist*.lnk

del /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

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  :blushing:  )

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...