copy scrpt
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
I am trying to create a script to distribute a shortcut to all desktops but
keep getting either "The system cannot find the can't find file specified" or
"The network path was not found" this is what i have tried so far.
copy \\atlantis\students_shared\client_updates\lessonkits.lnk
"%username%\desktop"
copy \\atlantis\students_shared\client_updates\lessonkits.lnk
%username%\desktop
copy \\atlantis\students_shared\client_updates\lessonkits.lnk.lnk
%username%\desktop
copy \\atlantis\client_updates\lessonkits.lnk %username%\desktop
The share is mapped to the X drive, when i view this drive through a dos
window i can drill down to the "client_updates" folder and view the files,
strangely though when i look at the files from here they hav an additional
".lnk" attached as a suffix.
Having spent a number of hours now I cannot see what i have done wrong, the
appears security but i have all rights to the locations, once again
appreciate any help
--
Thanks and regards
Tony
.
Relevant Pages
- Re: Placing shortcuts on the desktop using a policy
... That's the way I do it, but I place the shortcut to be copied in the same ... I then reference it using %~dp0)which evaluates to ... being available for the script to run properly. ... >> I need to put a shortcut on all of the desktops in the organization. ... (microsoft.public.windows.group_policy) - Re: Placing shortcuts on the desktop using a policy
... That's the way I do it, but I place the shortcut to be copied in the same ... I then reference it using %~dp0)which evaluates to ... being available for the script to run properly. ... >> I need to put a shortcut on all of the desktops in the organization. ... (microsoft.public.win2000.group_policy) - Re: help writting script to copy file to every desktop
... Then it will ping each computer to see if it is truly reachable. ... Here is a sample script that I use. ... Each shortcut is only 1KB each, so the extra replication traffic is nothing. ... You will get different methods, collections, and properties for a file than you will for a folder. ... (microsoft.public.scripting.vbscript) - Re: Findout shortcut from which script was launched ?
... apply the script to selected files. ... &Cmd window in this directory ... Context Cmd window.lnk shortcut has the following properties set: ... and when selecting a file or several, selecting Send To the script in the ... (microsoft.public.scripting.vbscript) - Re: help writting script to copy file to every desktop
... I added the script to the policy assigned to the OU. ... Each shortcut is only 1KB each, so the extra replication traffic is nothing. ... You will get different methods, collections, and properties for a file than you will for a folder. ... ' Create a collection of files in the folder object ... (microsoft.public.scripting.vbscript) |
|