Why is that? I don't know much about WSH, but I did a little vbs to test Unicode support of WSH. The files is called C:\北京歡迎你\何日君再来.vbs (Unicode characters can not be shown here it seems) and contains the following short code:
CODE
myPath = "c:\北京歡迎你\"
Set objShell = CreateObject ("Shell.Application")
Set objFolder = objShell.Namespace (myPath)
Set objFSO = CreateObject("Scripting.FileSystemObject")
Dim Headers(13)
For i = 0 to 13
Headers(i) = objFolder.GetDetailsOf (objFolder.Items, i)
Next
For Each strFileName in objFolder.Items
Lines = "Path: " & myPath
For i = 0 to 13
Lines = Lines & vbCr & Headers(i) & ": " & objFolder.GetDetailsOf (strFileName, i)
Next
Wscript.Echo Lines
Next
I saved the script in UTF16LE w/BOM.
Since there is only one file in this folder, the output is only one msgbox. The info in there, including title, author etc. is all pretty much Unicode. (would have attached a screen shot but don't know how)
At the very least, the UTF16 script can find a file in a Unicode path, which is all I want.
I must admit I don't know how rtc uses WSH, but WSH seems to have no issue with Unicode.
To your last remark, how can I use external files to define paths/filenames? All I am doing is replacing icons.
Thanks for the quick reply.
Cheers, [me][/me]