Error writing file name which contain both English and non-English name

Hello
I have this simple vbscript code which suppose to write all file names in some directory to a text file
Dim FSO
Dim FileDirectory
FileDirectory = "C:\temp"
Dim FileList
FileList = "list.txt"
Dim Fname
Set FSO = CreateObject("Scripting.FileSystemObject")
set FileDirectory = FSO.GetFolder(FileDirectory)
Set objFile = FSO.CreateTextFile(FileDirectory & "\" & FileList ,True)
for each file in FileDirectory.files
Fname = file.name
objFile.Write( ChrW(34) & Fname & ChrW(34) & vbCrLf)
objFile.Write( ChrW(34) & FileDirectory & "\" & Fname & ChrW(34) & vbCrLf)
Next
objFile.Close
Everything goes fine while file names are in English but when some file name is non English or both  English with non English name (right to left languages) an error raised, so how to deal with this writing issue without changing the file name
thanks in advance

Thanks
jrv for replying
I tested you code but it didn't worked for me (works fine for English file names but doesn't work with right to left language )

Similar Messages

  • Does table MCHB (batch stocks) contain both valuated and non valuated stock

    Hello
    Does table MCHB (batch stocks) contain both valuated and non valuated stock?
    Is it possible that material has both valuated and non valuated stock for the same plant and storage location?
    Thanks

    Hi ,
    Most of your queries has been answered by Jurgen.
    1)Does valuated or non valuated is linked with valuation type? yes ..if the material is valuated then only there is valuation type.It is used for split valuation .
    2)Where can I see whether material is valuated on plant or not?
    to check the valuation level IMG >Enterprise Structure>Definition>Logistics - General>Define valuation level
    and to check value and quantity updation at plant level check
    IMG >Logistics - General>Material Master>Basic Settings>Material Types-->Define Attributes of Material Types
    3)Case1
    I want material A to be valuated at the plant without split valuation
    Case
    I want material B to have 0 value at plant
    go as Jurgen has recommanded in the previous post . for material B used different material type which is not valuated at that plant .
    Regards,
    Anupam

  • Package name which contain user exit  in standard include name

    hai experts,
    can i know the package name which contain user exit mean standard include which contain forms of the perform. or give some suggestion to find this exit for purticular tcode.
    useful reply will be awarded.
    regards,
    jai.m

    Hai,
    it is not over thare....
    actualy i need to do some work at the time of the save document of mb1b transaction. my need is if any one exit or custmer exit or badi has trigger at the time of save the document in mb1b transaction.
    regards ,
    jai.m

  • Java class names which contain unicode characters

    I need to create, compile and load java classes which have class names that contain unicode characters.
    I am using Win2k but will neet to support unix* in future.
    When I try to create a fooXbar.jar where X is a unicode character which is not ascii I get an error when creating the file.
    My question is: how do I map java class names and package names which contain non ascii characters into
    names that the files systems will like AND that the java VM will use when trying to load .class file from the class path.
    for example what would the .java and .class file be for the following class?
    class \u6587\u66f8 {

    You could make names for .java and .class that is understandable by the filesystem. E.g. you could prepend with % and then digits for the unicode character. The problem is then how to compile the class, and how to load the class.
    You can load the class with a custom classloader, which will translate the unicode class name to the escaped file name (using %).
    The problem is then reduced to how you can compile your code (you have to map the file name to the class name somehow). I think it can be done, but I don't know the solution to that.
    Alternatively you can use meaningful names for the classes, and then make an obfuscator that can change the bytecodes so the classnames are changed to some obscure unicode names. Perhaps there is already obfuscators out there you can use that will use unicode characters.

  • Can't install iTunes-  error writing files to files to a folder     -_-

    When I try and install iTunes 8, it installs most of it but then comes up with
    "Error writing file to C:/Program Files/Common Files/Apple/Mobile Device Support/SyncServices/Schemas/Contacts.syncschema/Contents/Resources/zh_CN.lproj /Conflicts.Strings. verifty that you have access to that directory.
    I got my iPod for christmas and I love it but iTunes has dissappointed me. It won't install, what do I do?

    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • When using Quite Imposing Plus the resulting file is only given a Temp name which will be sent as the document name.

    Our company has recently upgraded form Acrobat Professional 8 to Acrobat professional XI. We also use the Quite Imposing Plus plug-in in both versions. Now when using Quite Imposing Plus the resulting file is only given a Temp name which will be sent as the document name to the printer unless the imposed document is first saved. This was not the case in Acrobat Professional 8. I have attached a screen shots that shows an example.
    Is there any reason why this is happening and how can we stop it.

    Thank you for your advice although I think you may be incorrect as the naming of the documents made with Quite Imposing is correct in Acrobat 8.
    After reading the comment below it would seem something has changed from version nine onwards.
    Going forward we plan on changing the way we save and send our imposed documents to print but thank you for your time.

  • 1.- I´m creating a Muse site which contains videos, photos and sound. All videos, sounds and pictures are located in diferent folders in my PC. Since Muse doesn't organize the project and its files like Dremweaver (all files in a single folder). How can I

    1.- I´m creating a Muse site which contains videos, photos and sound. All videos, sounds and pictures are located in diferent folders in my PC. Since Muse doesn't organize the project and its files like Dremweaver (all files in a single folder). How can I manage my site (containing all the media)  in order to upload it to a server?
    2.- Is there a Adobe Muse community in spanish language?
    Thanks for your help
      Mauricio444

    Kevin is suggesting that you store the projects you create while working through his book in a folder called RoboHelpProjects. It is not where you have to store every project you ever create.That is for the purposes of his book.
    RoboHelp initially defaults to My RoboHelp Projects but it's up to you whether you do. Generally on the forums we advise against that as  it is part of your profile and can result in excessively long path names in a few cases. Generally where authors create file names that are so long they almost serve as the content.
    Projects always have a root folder, call them Project 1 and Project 2 for this purpose. You can have those folders directly off your C drive (or other local partition) or within in a parent folder as above.
    Now to what you can and cannot do. You can delete a whole project by selecting Project 1 or Project 2 in Windows Explorer. Obviously if you delete the parent folder you will delete all your projects within.
    What you must not do is delete individual files within a project using Windows Explorer, for that you use RoboHelp's Project Manager. The exception is if you go to Tools > Reports there is a report Unused Files. Files listed there will have to be deleted using Windows Explorer for the very good reason they do not appear in Project Manager and, therefore, cannot be deleted that way.
    If you think about it, it is similar to Word. There is no option to delete a document there other than using File > Open and right clicking. Not very intuitive.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Why is Premiere 6 giving a "Error writing file (disk full?)" message?

    Hello helpful experts,
    I'm using Premiere 6 on a Windows 7 machine.
    I have a file imported in to the timeline and it is set to play in reverse via the speed setting being set to -100 and it plays back in the preview window correctly, in reverse, when I click the play button.
    But when I do a  "File>Export Timeline>Movie" command I get an error message saying "An error occurred while making the movie. Error writing file (disk full?)"... but my hard drive is not nearly full, with over 30 gigs left open on it... and my RAM usage gadget shows over half of my RAM capacity is unused.
    Now previously, weeks ago on a different project, I was getting this same error message for a while when I would hit enter to preview my movie on the timeline (but that worked itself out somehow and eventually stopped giving me that error message).  But when I went to save and export, then I would not get the error message... now, it is just the opposite... I'm now getting the error message when trying to do an export and save the movie.
    And also now when I hit enter to preview, as opposed to just clicking the play button on the preview window, Premiere is going through the process of saving the movie since it is saving a temporary preview file... hopefully, since I'm getting this error message, I can find the temporary preview file and save it as my exported AVI file.
    But I still shouldn't be getting this error message when trying to save, or when trying to preview, as I did for a while a couple of weeks ago.
    Does anyone know about the erroneous error message that says, "An error occurred while making the movie. Error writing file (disk full?)"
    Thanks,
    numetro

    Depending on your hard drive size, P6 may be confused... since drives were not as large when it was written
    For Win7 64bit Pro or Ultimate (or Enterprise?) this is ONE example of using Virtual XP http://forums.adobe.com/thread/702693?tstart=0
    This is saved from an OLD message that may help
    File size limits by disk format type
    Fat = 2 Gig maximum file size
    Fat32 = 4 Gig
    NTFS = ?Terrabytes?
    Message saved from Premiere forum
    John Acocks - 07:52am Apr 17, 2003 Pacific
    I am unable to complete captures because I get a message
    that says "capture stopped because disk was full." What
    does this mean?
    Daniel Conklin - 08:02am Apr 17, 2003 Pacific (#1 of 2)   
    If you are using a Pinnacle card, a possible solution to
    this is to right click on the recycle bin, and set the
    percentage on your media drive to less than 2%.
    There a several other possible causes as well, but you
    need to supply some info about your system. How are you
    capturing and what format is your video? How big is
    your hard drive?
    Jeff Schell - 09:57am Apr 17, 2003 Pacific (#2 of 2)   
    this is one of my favorite error messages. Basically,
    you've chosen an incorrect setting in your DV settings.
    (Odds are you have DV settings). If so, read on:
    1. The DV format is very rigid. Meaning that if you
       make changes to the format, it cannot export as
       requested, because your movie file must match every
       single spec exactly.
    2. When Premiere goes to export a project, the DV codec
       says "Whoa. I can't do anything, because the settings
       don't match."
    3. Then Premiere comes back to you and has to report an
       error. (Don't shoot the messenger). Unfortunately,
       Premiere doesn't know why it wasn't able to export a
       movie. So it says to you, "Um... I can't make the movie.
       Um... maybe your hard drives are full?"
    It's a complete guess. And has nothing to do with your harddrives.
    Check your project settings and/or your export settings. Make
    sure you have chosen one of the "presets" that will specify
    every correct setting for you. Make sure it is one of the DV
    presets, if you are using DV video, or make sure it is one of
    the presets supplied by your capture card manufacturer (in this
    case I'm going to guess Pinnacle or Matrox.)
    To choose a preset, go to Project > Settings Viewer, and then
    click on the project settings column, and then click 'load' to
    load a correct preset. Do the same with export settings.

  • Table which stores both creator and requestor names

    Hi Experts,
    We are using SRM 7.0 with extended classic scenario.We got a requirement that when Shopping cart rejected  then rejection email should go to both creator and requestor in case of Shop on behalf.
    But as per standard SRM rejection email going only to requestor.As we are trying to figure out how to trigger the mail to creator aswell,
    Can some one help with the table name if any which stores both creator and requestor names so that we try to build some logic.
    Thanks in advance.
    Regards,
    Kalyani

    Hi Sankara,
    Thanks for your response.
    Yes i checked the FM bbp_pd_sc_getdetails it didn't solved the purpose.
    Thanks.
    Regards,
    Kalyani

  • Table name which contains the email addresses maintained in address area of SCOT

    HI,
    I would like to know the table name which contains the email addresses maintained in address area of SCOT.
    I know how to see through SCOT, but I want to see as a list through SAP table.
    I am not able to see email list through SXNODE AND SXADDRTYPE tables.
    Thanks,
    Nagaraju Ravuri

    Hi Nagaraju,
    You may use ADR6 table and field SMTP to get email address of respective users.
    Regards,
    Deepak Kori

  • Adobe Reader 8.1.2 - Error 1304.Error writing file

    I keep getting an error as follows wvery time i try and download Adobe Reader 8.1.2:
    Error 1304.Error writing file
    C:\ProgramData\Adobe\Acrobat\8.0\Replicate\Security\directories.acrodata. Verify that you have access to that directory.
    I run Vista 64 and have plenty of memory and space.
    Canu help?
    Michael

    these two errors below is what I am receiving when do a program integrity scan: common program locations.
    I have done a repair on acrobat reader and I do have the two dll files I even put them in reader folder and still receiving the errors.
    missing file:"c:\program file\adobe\reader 8.0\reader\acrord32.exe"
    "c:\program files\adobe\reader 8.0\reader\acrord32.exe"cannot access a necessary file,"msvcp80.dll
    missing file:"c:\program file\adobe\reader 8.0\reader\acrord32.exe"
    "c:\program files\adobe\reader 8.0\reader\acrord32.exe"cannot access a necessary file,"msvcr80.dll

  • I just updated to Pages 5.0 and I am writing a document that uses both, Spanish and English...I used to use the inspector to change spelling and languages. How do I do that in this new version?

    I just updated to Pages 5.0 and I am writing a document that uses both, Spanish and English...I used to use the inspector to change spelling and languages. How do I do that in this new version?...HELP!!!

    jedimaster Master wrote:
    how do I do both?
    By choosing SET UP for the "automatic" item at the bottom of the list I referred you to earlier

  • APEX 4.1.0 to 4.2.1 This page contains both secure and nonsecure items

    I have upgrade Oracle Application Express from 4.1.0 to 4.2.1. After the upgrade, I started to get "Security Information - This page contains both secure and nonsecure items. Do you want to continue?" at the login page. Once I am logged in, I get the same notification for every button/task that I do. What did I do wrong?
    Sincerely,
    Ronnie A. Tolentino

    Do you know which files are not loading with HTTPS?
    With any luck they are files you added and you can change them in the template to HTTPS.
    If they are files added by APEX, then I'm not sure if there's a way to change it, but you could remove the substitution string that APEX adds and add the files directly to your template with HTTPS. It's not ideal and would need to revise those includes after each upgrade, but it would eliminate the error.
    Or live with it. :-)
    Thanks
    Jorge

  • Truncating the leading zeros which has both numbers and characters

    Hello Everyone,
    Can anybody pls help me to truncate the leading zeros in the incoming file structure which has both the numbers and characters.
    Thanks,
    Chinna

    HI,
    Write a UDF like this ..
    public class test {
    public static void main(String[] args) {
    System.out.println(args[0].replaceAll("^0*",""));
    Also you can use XSLT for this.
    Try the XPath function number($string) in your XSLT and see if it does what you want. Since it turns any XPath object into a number, the leading zeros won't appear.
    Use it ike this
    <xsl:variable name="a">
    <xsl:call-template name="removeLeadingZeros">
    <xsl:with-param name="phone">
    <xsl:value-of select="EVENT/ContactPhone"/>
    </xsl:with-param>
    </xsl:call-template>
    </xsl:variable>
    <xsl:template name="removeLeadingZeros">
    <xsl:param name="phone"/>
    <xsl:message>
    <xsl:value-of select="$phone"/>
    </xsl:message>
    <xsl:choose>
    <xsl:when test="starts-with($phone,'0')">
    <xsl:call-template name="removeLeadingZeros">
    <xsl:with-param name="phone">
    <xsl:value-of
    select="substring-after($phone,'0' )"/>
    </xsl:with-param>
    </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$phone"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    Regards
    Aashish Sinha
    PS : Reward Point if Helpful

  • How can build help file for right to left and non english language

    hi erverybody, i have a big problem ,please help me
    i creat a c# appliction with vs.net2005 and i want to write
    help file for it .i need a software to creat help file for non
    english language(such as persian or arabic) and right to left
    support . i tried many helpware chm builder tools but each of them
    made a problem .i dont know what to do .what is the best solution
    for creating help files for right to left and non english languages
    how can i build my help file with f1 helping ability .thank u
    so much
    Text

    Hi Mr_Sia and welcome to the RH community.
    You could try looking at the HAT Matrix. This is a comparison
    of all the help tools around. Click
    here to go to it.
    RoboHelp itself, whilst it does support over 35 different languages
    does not support Persian or Arabic.

Maybe you are looking for

  • Most of the music has disappeared from my iPhone!

    For no apparent reason about 80% of the music has disappeared from my iPhone, and I am traveling so most of those songs live on my home hard drive and are inaccessible to me. How and why does that happen, and how do I fix it? iPhone 5, iOS 8.0.2. I d

  • Connecting ADC to component video

    Hi, I want to connect the ADC port on my PowerMac G4 to the component video input of my TV. I was thinking I could just buy an ADC to DVI converter, and then a DVI to component converter: does anyone know if that'll work? Is there a better way to do

  • Itunes library won't transfer, please help.

    Just bought a new PC and I am setting up two users. I followed the instructions for transferring my Itunes library via my external HD. It let me transfer mine (I am the admin) but when I follow the exact same procedure for my wife's user account it w

  • Redo file question

    As written in Oracle documents. oracle records each and every tranjaction in redo buffer and as soon as writes to redo file. As redo file is full it switches to another redo file. While switching redo file it archives the the current redo file and th

  • I want the menudef.mmb

    I have DEV 6i (only 1 CD ) I don't have the demo CD. Please, if anybody can send me the menudef.mmb file.My E-mail is [email protected] Regards Kamal