|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Using the copy command
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? KWME wrote:
> I'm trying to move a shortcut into every user's My Documents folder. Download details: Windows Script Documentation> 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? 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 |
|||||||||||||||||||||||