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
Link_to problem with inserting new row into table. Ruby on Rails.
Exchange 2000 Server no Sending out NDR's to users when the email address.
Can't access XP from Vista
Crashing server
Opening Other Mailboxes
I am getting "Cannot connect to the citrix metaframe server. protocol driver error" when ICA clients connect - Urgent
I need a nice javascript vertical news scroller with stay feature.
Javascript Ajax - No Value Changing?
550 5.7.1 unable to relay
WDS Slipstream Drivers?