List Info

Thread: RE: Follow-up question regarding shortcut creation/change




RE: Follow-up question regarding shortcut creation/change
country flaguser name
United States
2007-08-30 15:59:49
>and the argument part is interspersed with CHR(0)'s
between every
>character...

Sounds like Unicode to me.  Unicode uses 16bit wide
characters, and if
you're using English, you wouldn't use the second byte
(making them all
zeros).   

-Wayne Simmons

--
Software Engineer
InterSystems USA, Inc.
303-858-1000
  
________________________________________
From: activeperl-bounceslistserv.ActiveState.com
[mailto:activeperl-bounceslistserv.ActiveState.com]
On Behalf Of Jan Dubois
Sent: Thursday, August 30, 2007 2:18 PM
To: Deane.Rothenmaierwalgreens.com; activeperllistserv.ActiveState.com
Subject: RE: Follow-up question regarding shortcut
creation/change

Win32::Shortcut is part of ActivePerl on Windows.

It won’t give you anything than what you got from your WSH
implementation,
so I may not understand the real issue behind your
question.

Cheers,
-Jan

PS: Could you please use plain text messages on the mailing
list?  Makes it
much easier to reply to individual parts of messages.

From: activeperl-bounceslistserv.ActiveState.com
[mailto:activeperl-bounceslistserv.ActiveState.com]
On Behalf Of
Deane.Rothenmaierwalgreens.com
Sent: August 30, 2007 12:49 PM
To: activeperllistserv.ActiveState.com
Subject: Follow-up question regarding shortcut
creation/change


Okay, gurus, you've helped me get this far, now.... 

Is there a WMI method to edit a desktop shortcut?
Specifically, I need to
change the argument string from an IP address to the DNS
name the IP
resolves to. For example, if the Target  text of the
shortcut is 

        c:foofoo.exe 255.255.255.255 1024 

I need to change the "argument" part so the Target
text becomes (if that IP
resolves to FOO15) 

        c:foofoo.exe FOO15 1024 

Is there a way to do this?  Or is it possible to edit the
.lnk file in Perl?
 It seems to be in binmode (I think?), and the argument part
is interspersed
with CHR(0)'s between every character... 

Thanks again, 

Deane Rothenmaier
Programmer/Analyst
Walgreens Corp.
847-914-5150

My goal is simple. It is complete understanding of the
universe, why it is
as it is and why it exists at all. -- Stephen Hawking


_______________________________________________
ActivePerl mailing list
ActivePerllistserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )