Jump to content

Recommended Posts

Posted

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


Posted

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"

Posted

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 ??

Posted

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"

Posted

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

Posted

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

Posted
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.

Posted

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.

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...