Re: Can't create shortcut whose name contains Unicode?
- From: "James Whitlow" <jwhitlow.60372693@xxxxxxxxxxxxx>
- Date: Tue, 6 May 2008 08:39:05 -0500
"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" ?>
.
- Follow-Ups:
- References:
- Prev by Date: Can't create shortcut whose name contains Unicode?
- Next by Date: How Can Execute this with WSH?
- Previous by thread: Can't create shortcut whose name contains Unicode?
- Next by thread: Re: Can't create shortcut whose name contains Unicode?
- Index(es):
Relevant Pages
|
Loading