Home All Groups Group Topic Archive Search About


Author
16 Apr 2007 8:04 PM
KWME
I'm trying to move a shortcut into every user's My Documents folder.  I've
got a loop set up that accesses an excel file with all the user's names
listed.

I've got the UNC path for the source and destination folders included in
separate variables (source and destination).

I'm using the copy command this way:

copy source destination

When I run the script I get an expected end of statement error for the line
containing the copy command.  Help?

Author
16 Apr 2007 11:27 PM
Michael Harris (MVP)
KWME wrote:
> I'm trying to move a shortcut into every user's My Documents folder.
> I've got a loop set up that accesses an excel file with all the
> user's names listed.
>
> I've got the UNC path for the source and destination folders included
> in separate variables (source and destination).
>
> I'm using the copy command this way:
>
> copy source destination
>
> When I run the script I get an expected end of statement error for
> the line containing the copy command.  Help?

Download details: Windows Script Documentation
http://www.microsoft.com/downloads/details.aspx?FamilyID=01592c48-207d-4be1-8a76-1c4099d7bbb9&DisplayLang=en


....and look up the documentation of FileSystemObject methods for copying
files and folders...

--
Michael Harris
Microsoft.MVP.Scripting

AddThis Social Bookmark Button