how to delete file have arabic character in vbscript RRS feed

  • Question

  • how can i delete file have arabic character i tired :/

    my code:

    On Error Resume Next
    dim filesystemobj
    set filesystemobj = createobject("scripting.filesystemobject")
    installdir = "c:\users\pc\appdata\local\temp"
    installname = "تجربة.vbs"
    filesystemobj.deletefile installdir & "\" & installname ,true

    • Moved by Bill_Stewart Wednesday, September 13, 2017 9:18 PM This is not non-English localization support forum
    Thursday, July 27, 2017 4:26 PM

All replies

  • VBScript does not support Arabic characters.  You may be able to change your locale to one that supports Arabic.

    You can use PowerShell and set the language and character set as needed.

    You should post this in an Arabic B forum as someone there might know what steps you need to take to support Arabic.

    Another method is to use "Char" function to create the extended characters.


    • Edited by jrv Thursday, July 27, 2017 4:34 PM
    Thursday, July 27, 2017 4:31 PM