[wpkg-users] Copying a shortcut from a network share to desktop?
Pendl Stefan
stefan.pendl at haidlmair.at
Thu Feb 5 11:56:39 CET 2009
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.
---
Stefan
More information about the wpkg-users
mailing list