[wpkg-users] Copying a shortcut from a network share to desktop?
Chris Wilcox
not_rich_yet at hotmail.com
Thu Feb 5 13:05:51 CET 2009
> From: stefan.pendl at haidlmair.at> To: wpkg-users at lists.wpkg.org> Date: Thu, 5 Feb 2009 11:56:39 +0100> Subject: Re: [wpkg-users] Copying a shortcut from a network share to desktop?> > Chris Wilcox wrote:> <package id="CH4EnvChangeShortcut" name="CH4 Environmental Change Shortcut" revision="1" reboot="false" priority="0">> <install cmd='net use x: \\10.251.193.3\MMedia\Shortcuts'<file://10.251.193.3/MMedia/Shortcuts'> />> <install cmd='copy "x:\CH4 Environmental Change.lnk" "C:\Documents and Settings\All Users\Desktop"' />> <install cmd='net use x: /delete /yes' />> </package>> > The shortcut definetly exists and is named as above.> > ---> > Chris,> I would place all into one batch file and execute this, if you do not want this you need to precede any DOS command with "CMD.EXE /C", since DOS commands are not executables.> > <install cmd='cmd.exe /c copy "x:\CH4 Environmental Change.lnk" "%ALLUSERSPROFILE%\Desktop"' />> Notice that I used the ALLUSERSPROFILE DOS environment variable to make things work on any configuration.
Quite a few bits of advice there, many thanks to all replies!
Chris
_________________________________________________________________
Windows Live Messenger just got better .Video display pics, contact updates & more.
http://www.download.live.com/messenger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20090205/0eb6786c/attachment-0002.html>
More information about the wpkg-users
mailing list