Re: Copying a shortcut from a network share to desktop?
Chris Wilcox <not_rich_yet <at> hotmail.com>
2009-02-05 12:05:51 GMT
> 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
Share your photos with Windows Live Photos - Free
Try it Now!
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users <at> lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users