Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving xcopy command to vbscript

Status
Not open for further replies.

emozley

Technical User
Jan 14, 2003
769
GB
Hi,

I've got a line in a login script (.BAT) which reads as follows:

xcopy "i:\program files\microsoft office\office\startup\*.*" "%USERPROFILE%\application data\microsoft\word\startup" /d /e /i /y

What is the equivalent of this in vbscipt please? As there are quite a few switches is it easier to shell out rather than code it up if so how do you do this bearing in mind the " in the line?

Thanks very much

Ed

 
I assume you know how to create a WshShell object:
WshShell.Run "xcopy ""i:\program files\microsoft office\office\startup\*.*"" ""%USERPROFILE%\application data\microsoft\word\startup"" /d /e /i /y", , True

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top