TK Consulting Pty Ltd
  Home     
  
  Blog     
  
  Contact   
Login
TKC Blog
25 Latest ArticlesCurrent Articles | Archives | Search
16

Execute xcopy command from VB Script to copy files

tkaragiris posted on February 16, 2010 13:59 Article Rating

Here is an example of how to execute xcopy from VB Script.


' XCopy files from a source folder to dest folder in vb script
Set WShell = CreateObject("WScript.Shell")
WShell.Run "XCOPY ""c:\temp\source"" ""c:\temp\dest"" /R /Y /D", 1, True

 

Actions:E-mail | Permalink | Kick it! | DZone it! | del.icio.us
Search Blog
TKC Blog Latest Articles
SQL Code to get data in pages for SQL Server 2005 plus by tkaragiris
Change appSettings value in web.config in VB.net programatically by tkaragiris
How to apply css styles to one table and not another by tkaragiris
SQL Server search and replace text in table by tkaragiris
Using hashtables in VB.net by tkaragiris
Extract HTML list items from a string usin regular expressions by tkaragiris
Trigger a function from a linkbutton in gridview footer that iterates through all rows in the gridview by tkaragiris
Using the objectdatasource with griddview or detailsview controls by TKCAdmin
Execute DOS command like XCOPY from VB.net by tkaragiris
Display a log text file in reverse order VB .net by tkaragiris
Blog Archive
January 2012 (1)
February 2011 (1)
January 2011 (2)
November 2010 (2)
September 2010 (1)
August 2010 (2)
May 2010 (1)
March 2010 (1)
February 2010 (6)
Copyright 20011 TK Consulting Pty Ltd
Privacy Statement  |  Terms Of Use