Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: SaveChapter 19
Win32 Modules and Extensions
Next: 19.16 Win32::Shortcut
 

Set

$link->Set(path, arguments, workingdirectory, description, showcmd, hotkey, iconlocation, iconnumber)

Sets all the properties of the shortcut object with a single command. This method is supplied for convenience only; you can also set these values by changing the values of the properties. For example:

$link->Set("C:\PERL5\BIN\PERL.EXE",
           "-v", 
           "C:\PERL5\BIN",
           "Prints out the version of Perl",
           SW_SHOWMAXIMIZED,
           hex('0x0337'),
           "C:\WINDOWS\SYSTEM\COOL.DLL",
           1);
This is the same as:
$link->Path("C:\PERL5\BIN\PERL.EXE");
$link->Arguments("-v");
$link->WorkingDirectory("C:\PERL5\BIN");
$link->Description("Prints out the version of Perl");
$link->ShowCmd(SW_SHOWMAXIMIZED);
$link->Hotkey(hex('0x0337'));
$link->IconLocation("C:\WINDOWS\SYSTEM\COOL.DLL");
$link->IconNumber(1);</PRE>


Previous: Reference: SavePerl in a NutshellNext: 19.16 Win32::Shortcut
Reference: SaveBook Index19.16 Win32::Shortcut

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.