Jump to content

Recommended Posts

Posted (edited)

Hiyas

I made a batch file to delete the "Links" folder in IE:

RD /s /q "%USERPROFILE%\Favoriter\Länkar"

Favoriter\Länkar = "Favorites\Links" in english

But it returns the error "File not found", could this be because of the scandinavian characters in the folder name? :( Other folders with "normal" names are ok to delete.

Edited by daedalus123

Posted

To fix the problem with the character, use this!

RD/S/Q "%USERPROFILE%\Favoriter\L„nkar"

You will of course have far more to do than this if you wish to remove that folder. That problem has been covered on more than one occasion within these forums, so I suggest you search appropriately if you have not yet done so.

Posted (edited)

When I copy that and paste it in Notepad the "weird" character turns out to ",," (without the quotes). And no, it doesn't work.

I got a hold of a friend that told me to use "CHCP 1252" in the batch and hooray, it worked.

Some googling shows that "CHCP 1252" converts it all to Unicode. :)http://www.cygwin.com/ml/cygwin/1999-02/msg00748.html

Problem solved :thumbup (and yeah, I got the regtweaks to keep it from reappearing)

@echo off
CHCP 1252
RD /s /q "%USERPROFILE%\Favoriter\Länkar"
exit

Edited by daedalus123

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