Welcome to Scripting Forums Sign in | Join | Help
in Search

Script to Remove UniCode/Illegal Characters from Files' Name

Last post 12-06-2007, 10:16 AM by asgarcymed. 1 replies.
Sort Posts: Previous Next
  •  12-05-2007, 7:40 PM 28992

    Script to Remove UniCode/Illegal Characters from Files' Name

    I have many downloaded files which contain, in its name, UniCode characters (such as Chinese, Japanese, Korean, Arabic, Hebraic, Russian) which are seen as "Illegal Characters" by English version of Windows XP's explorer.exe... This causes serious troubles when managing such files...
    Thus, I would like to get a script to automatically delete such characters from files' name, in order to avoid problems when trying to access them...

    PS - even when downloading, for example, an eBook (or application) totally written in English, stupidly the files' names can contain such unicode/illegal characters (I think that's because they are hosted in foreign servers)...

    Thanks.

    Regards.
  •  12-06-2007, 10:16 AM 29001 in reply to 28992

    Re: Script to Remove UniCode/Illegal Characters from Files' Name

    Someone, outside here, told me about REGULAR EXPRESSIONS...  Please give a look at:

    http://www.autoitscript.com/forum/index.php?showtopic=58848&st=0&gopid=444082&#entry444082

    and

    http://www.isthisthingon.org/unicode/allchars1.php

    My problem is that I do not know how to make the RegExp...

    I can use VBScript, AutoIt, Perl, Python, Ruby, Tcl-Tk, or whatever, but I need some help...


    Thanks.

    Regards.
View as RSS news feed in XML
SPONSORED LINKS FEATURED LINKS

Interested in Email Encryption? Read about the advantages of identity-based encryption in this free report. Order Your SQL Fundamentals CD Today! Learn how to use SQL Server, understand Office integration techniques and dive into the essentials of SQL Express and Visual Basic with this free SQL Fundamentals CD. Virtualization Congress Oct. 14-16 in London Don't miss Virtualization Congress, the premiere EMEA conference dedicated to hardware, OS and application virtualization. Oct. 14-16. IT ConnectionsDive into the new Microsoft platforms and products you implement and support with the experts from Microsoft, TechNet Magazine, Windows ITPro and industry gurus. There are 70+ sessions and interactive panels with networking opportunities. Attention User Group Leaders...Announcing the eNews Generator—a FREE HTML e-newsletter builder for user group leaders. Build your HTML and text e-newsletters in minutes and add Windows IT Pro & SQL Server Mag articles alongside your own message!. Master SharePoint with 3 eLearning SeminarsLearn how to build a better SharePoint infrastructure and enable powerful collaboration with MVPs Dan Holme and Michael Noel. Register today! Get SQL Server 2008 at WinConnectionsDon’t miss Microsoft Exchange and Windows Connections conferences, the premier events for Microsoft IT Professionals in Las Vegas, November 10-13. Every attendee will receive a copy of SQL Server 2008 Standard Edition with one CAL.

 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing