Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: Using the copy command

HTVi
TV Discussion Newsgroups

Using the copy command
KWME 4/16/2007 8:04:04 PM
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?
Re: Using the copy command
"Michael Harris \(MVP\)" <mikhar.at.mvps.dot.org> 4/16/2007 11:27:20 PM
KWME wrote:
[Quoted Text]
> 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


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen