copy scrpt

  • Thread starter Thread starter Tony L
  • Start date Start date
T

Tony L

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
 
Try this:

copy \\atlantis\students_shared\client_updates\lessonkits.lnk
"%userprofile%\desktop"
 
Hi David,

I ran this script and got the following errors

C:\>copy \\atlantis\students_shared\client_updates\lessonkits.lnk
The system cannot find the file specified.

C:\>"C:\Documents and Settings\tlodder.STDAVIDS\desktop"
'"C:\Documents and Settings\tlodder.STDAVIDS\desktop"' is not recognized as
an i
nternal or external command,
operable program or batch file.

--
Thanks and regards
Tony


David Webb said:
Try this:

copy \\atlantis\students_shared\client_updates\lessonkits.lnk
"%userprofile%\desktop"
 
Hi David,

Thanks for your time i have a VB script that works.
--
Thanks and regards
Tony


David Webb said:
Try this:

copy \\atlantis\students_shared\client_updates\lessonkits.lnk
"%userprofile%\desktop"
 
Back
Top