I've modified my shortcut.pl so that if you supply a description it will name the shortcut the description and not just based on the filename. I think this would be helpful to others who might use this and to me it would be more intuitive. I was frustrated for about 10 minutes trying to figure out why the shortcuts to some mapped drives I was trying to create weren't named anything. (i.e *shortcut.pl --description "Image Drive" I:\ special:AllUsersDesktop *will create an un-named shortcut on the All Users desktop to I:\, completely ignoring the --description parameter)
Here are my changes. I don't know if I used the right options with diff to get the output you want. I've also attached the diff. 71,72c71,77 < if ($target_ext =~ m/.*/i) { < $shortcut_name = $target_name . $target_ext; --- > if (exists $opts{'description'}) { > $shortcut_name = $opts{'description'}; > } > else { > if ($target_ext =~ m/.*/i) { > $shortcut_name = $target_name . $target_ext; > } kevin
shortcut.pl.diff
Description: Binary data
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ unattended-devel mailing list unattended-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unattended-devel