Microsoft
Software
Hardware
Network
Question : Cannot copy shortcut to desktops
Hi,
I have been trying to run a script that should copy a shortcut from a server share to a user's desktop. I am just trying to get the script to work, but that is not happening.
Script:
@ECHO OFF
copy /y "\\server\share$\shortcut"
"%USERPROFILE%\Desktop\"
pause
Every time I try and run this from a target workstation, while logged in as a local admin, I get the following message in the command prompt.
The system cannot find the file specified.
Press any key to continue . . .
I can browse to the share and shortcut via UNC path. Why can't the script find the file if it is plainly there? I haven't even got to trying top deploy the script yet.
Thanks!
Answer : Cannot copy shortcut to desktops
Try this batch file:
i.e.
@ECHO OFF
copy /Y "\\server\share$\shortcutn
ame.*" "%USERPROFILE%\Desktop"
pause
Random Solutions
importing the cardfile using outlook
ActiveSync working, OMA notand giving either runtime error/Security Exception error when accessed.
Moving a large number of Exchange 2003 mailboxes on remote AD site to Exchange 2007 HQ
Simple question about changing from port 80 to port 8080 question?
How to log network administrator's actions, such as change FW rules, On PIX525 and ASA5520?
Cisco PIX 501 Port forwarding will not work.
Crystal Reports - Replace certain text from database
Fedora Core and Sendmail Config
Vista Laptop will not reconnect to server after disconnect error received
Exchange 2003 will not use local 2008 DC for GC/DC