Windows 10: A batch script which disables explorer's folder localization

Discus and support A batch script which disables explorer's folder localization in Windows 10 Performance & Maintenance to solve the problem; Hi, I'm trying to create a batch script that searches through the computer for desktop.ini files, and deletes the line LocalizedResourceName=.*, to... Discussion in 'Windows 10 Performance & Maintenance' started by Artemis, Jul 15, 2019.

  1. Artemis Win User

    A batch script which disables explorer's folder localization


    Hi,

    I'm trying to create a batch script that searches through the computer for desktop.ini files, and deletes the line LocalizedResourceName=.*, to let Windows explorer show the true folder names instead of the translated ones. (On a non-english system)

    I've started from the script written here and I copy-pasted the snippet found here to make the script able to ask for admin permissions on his own.

    This is actually the second or third iteration of the script and I still can't get it to work properly; for example, that weird ampersand structure is my attempt to implement a "proceed if success" logic, but apparently it never reaches the echo at the end.

    I'd like to build a definitive and "correct" version of the script that performs what described above, I'm looking for suggestion like "you should do that this way instead", or "you see that? that's wrong, do this instead" or "is usually best to do that this way".

    I am no batch expert but I'd really like to have a working, "smart", version of this script.

    This is the current version:

    My post can't contain batch code, even if inside
    Code:
    
    
    , I get blocked by cloudFlare, here's the gitHub repo


    As you can see I've doubled the loops, one for C: or whatever and the second one is hard-coded for D: this is ugly, also I'd like to exclude in an elegant way irrelevant folders like Windows etc, that cause the script to hang on kilometres long paths.

    This version has problems reading a lot of the desktop.ini files, and never reaches the (print) ECHO instruction at the end of the ampersand chain.

    Here's also a temporary screenshot, made with carbon (which doesn't have batch highlight)

    A batch script which disables explorer's folder localization [​IMG]


    :)
     
    Artemis, Jul 15, 2019
    #1

  2. Internet Explorer script error

    Hi Diana,

    Welcome to Microsoft community and thank you for posting your query.

    Sorry for the inconvenience caused to you. Let me help you to fix the issue.

    To assist you better, please provide us more information.

    • Is this issue is specific to a website or multiple website?
    • Is any toolbar is installed on the browser?
    These webpage script errors are usually it is harmless. However, did you try disabling the warnings? If not, try disabling the warnings and check.


    • Open Internet explorer and press Alt + X, click on
      Internet Options and click on Advanced.

    • Check "Disable script debugging (Internet Explorer)" and "Disable script debugging (Other)" and also, uncheck "Display a notification about every script error."
    If that does not help to fix the issue, I would suggest you to reset Internet explorer and check. Please follow the below steps


    • Open Internet Explorer and press Alt + X.

    • Click on Internet option.

    • Click on Advanced tab and click on
      Reset
      button.
    Select the Delete personal settings check box if you would also like to remove browsing history, search providers, Accelerators, home pages, Tracking Protection, and ActiveX Filtering data.

    Disclaimer:
    The Reset Internet Explorer Settings feature might reset security settings or privacy settings that you added to the list of Trusted Sites. The Reset Internet Explorer Settings feature might also reset parental control
    settings. We recommend that you note these sites before you use the Reset Internet Explorer Settings feature. Also re-enable the add-ons.

    Hope this helps. Keep posting us with the status we will be glad to help you.
     
    Billion Debbarma, Jul 15, 2019
    #2
  3. long running script in email account

    Hi,

    The long-running script error usually occurs when there are issues with Internet Explorer.

    To resolve your concern, we suggest turning off the scripting debugger in Internet Explorer 11. Please follow these steps:

    • Open Internet Explorer.
    • Click the Settings icon at the top-right corner, then select Internet Options.
    • On the Advanced tab, uncheck Disable script debugging (Internet Explorer) and
      Disable script debugging (Other).
    • Click Apply, then OK.

    Once done, check if the issue will still persist.

    Update us with the outcome so we can provide further assistance.
     
    Ronalene Mat, Jul 15, 2019
    #3
  4. A batch script which disables explorer's folder localization

    Excessive script errors in Internet Explorer 11

    Hi,

    Thank you for posting your query in Microsoft Community.

    I understand the inconvenience caused. I will be glad to assist you with this.

    Script error messages are displayed by Internet Explorer when there is a problem with the JavaScript or VBScript code on the website you are viewing. Occasionally a script error can be caused by an error in downloading a webpage, but more often it is an
    error in the webpage itself.

    I would suggest you to try the steps below to disable script error notifications and check if the issue persists.

    1. Press Windows key + R to open the run command.

    2. Type inetcpl.cpl and press enter to open advanced internet options.

    3. Click the Advanced tab, select the Disable
    script debugging Internet Explorer) and Disable script debugging
    (Other) check boxes.

    4. Clear the Display a notification about every script error check box, and then click
    OK.

    I would also suggest you to refer to the link for more troubleshooting steps regarding this issue:

    How to troubleshoot script errors in Internet Explorer

    Do get back to us with the result. We will be glad to help if you need further assistance.
     
    Wungraileng Vashi, Jul 15, 2019
    #4
Thema:

A batch script which disables explorer's folder localization

Loading...
  1. A batch script which disables explorer's folder localization - Similar Threads - batch script disables

  2. Netfix Batch Script- Fix internet connection

    in Windows 10 Network and Sharing
    Netfix Batch Script- Fix internet connection: Somebody please try my batch script Netfix and leave feedback so I can improve it. thank you! My goal is to make a troubleshooter to help the built in "Windows Network Diagnostics" fix internet connection problems. How can you help? 1. Download/copy the code on notepad...
  3. Batch script to automatically uninstall and Reinstall a driver

    in Windows 10 Drivers and Hardware
    Batch script to automatically uninstall and Reinstall a driver: For some strange reason I've had a faulty external Seagate 8TB driver/HDD for the last year The problem is this: everytime I reboot the computer, the HDD is not automatically recognized so I have to do this 1. Open Device Manager 2. Remove the USB attached SCSI mass storage...
  4. Batch Folder and Batch File/Move Software

    in Windows 10 Software and Apps
    Batch Folder and Batch File/Move Software: Looking for recommendations for software that handles automatic batch folder creation according to defined rules. Also looking for software that handles automatic file and folder moving into more than one directory according to selection criteria (size, date, extension,...
  5. Automatically Run Batch Script

    in Windows 10 Installation and Upgrade
    Automatically Run Batch Script: Hi everyone When the windows installation is finished, automatically run batch script. How can I do that? Thanks *Wink 122531
  6. Running PowerShell script as a batch file

    in Windows 10 Network and Sharing
    Running PowerShell script as a batch file: Can I run the Power Shell line: "C:\Windows\System32>get-appxpackage *3dbuilder* | remove-appxpackage" from a .Bat file? ***Original title: Removing bloatware***...
  7. Batch Script to execute in Win 10 pro

    in Windows 10 Support
    Batch Script to execute in Win 10 pro: I'm looking for a batch script that can: Pull the single row taskbar to a 3 row taskbar and lock it in place in its default location (bottom). Change the time format at the bottom right corner from default to have e.g. "2:00 AM" in the first row, "Saturday" in the second...
  8. Help needed writing batch script!

    in Windows 10 Support
    Help needed writing batch script!: Firstly thank you for even clicking on this thread as I understand that this probably isn't meant to be here. The scenario is that I'm trying to write a script that incorporates the result of a ping to an IP and then based on the result do different things. Here is an...
  9. Any good Batch file renaming software / scripts

    in Windows 10 Support
    Any good Batch file renaming software / scripts: Hi there does anybody have any decent batch file renaming software or scripts. Here's a whole slew of music files from BBC Radio 3 -- what I want is after the word Breakfast in the title to insert date and time (european format YYMMDD.HHMM -24 hr format. Here's what...
  10. Batch script question

    in Windows 10 Support
    Batch script question: Hello, I want make a batch script to delete a spefic folder on the C disk, but how can I get only that spefic folder? I got this: Code: FOR /D %%p IN ("C:\USERS\%USERNAME%\Downloads\*.*") DO rmdir "%%p" /s /q cd C:\USERS\%USERNAME%\Downloads\ del *.* /q /s timeout /t 5...