Re: Can't create shortcut whose name contains Unicode?



"Cat" <typingcat@xxxxxxxxx> wrote in message
news:c21c8d96-cc6a-48cc-a6c5-a1591f7c11d5@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
var oShellLink = WshShell.CreateShortcut( path+ "\\Some Asian
characters.lnk");
...
ShellLink.Save();

I created a simple wsf script using NotePad. I even saved it in UTF-8
encoding. But the code above fails because the scripting engine cannot
understand the Asian characters.

Error : Unable to save shortcut ".....??????.lnk".
Code 8007007B

Is there any way to create a shortcut in Unicode using WSH? If it is
impossible, please tell me also, then I can start finding another way.

You stated that this is a wsf (and not a vbs) script correct? If so, did
you specify the coding in your opening xml tag? Something like:

<?xml version="1.0" encoding="ISO-8859-1" ?>


.



Relevant Pages

  • RE: Passing parameters to wsf
    ... I addition Mr Chris Brooke Said in private email: ... You can send arguments to a .WSF script either named or unnamed. ... helpstring="Text to display" ...
    (microsoft.public.windows.server.scripting)
  • Re: Error: Expected statement
    ... source: MS VBScript compilationerror ... all of the code must fall between a pair of job tags. ... What do you mean by "a .wsf script inside a VBscript"? ...
    (microsoft.public.windows.server.scripting)
  • Referencing the JOB ID from with in the a script in wsf files
    ... If I have a wsf script similar to the following, ... & {something that references the JOB ID} ...
    (microsoft.public.scripting.vbscript)
  • Re: help writting script to copy file to every desktop
    ... Then it will ping each computer to see if it is truly reachable. ... Here is a sample script that I use. ... Each shortcut is only 1KB each, so the extra replication traffic is nothing. ... You will get different methods, collections, and properties for a file than you will for a folder. ...
    (microsoft.public.scripting.vbscript)
  • Re: Findout shortcut from which script was launched ?
    ... apply the script to selected files. ... &Cmd window in this directory ... Context Cmd window.lnk shortcut has the following properties set: ... and when selecting a file or several, selecting Send To the script in the ...
    (microsoft.public.scripting.vbscript)

Loading