Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Copy all files and folders in a directory to another

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,39250
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Copy all files and folders in a directory to another
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Copy all files and folders in a directory to another - 10/29/2006 3:14:09 AM   
  swiftoid


Posts: 31
Score: 0
Joined: 10/20/2006
Status: offline
Hi, I am trying to make s simple install program which will Copy all files and folders in a directory to another when run. I am still unsure whether to do it in vbs on a html page or just in a full blown Visual Basic program. Is there a simple File sytem object function to do this or is it more complicated. Any help much appreciated.

Also, can anyone tell me how do you launch an application from a Visual Basic app (or a vbs app). Thanks in advance.

_____________________________

Jamie Swift
<!---The Swiftanator---!>
www.swiftscripts.co.uk
 
 
Post #: 1
 
 RE: Copy all files and folders in a directory to another - 10/29/2006 7:14:14 PM   
  ehvbs

 

Posts: 2222
Score: 50
Joined: 6/22/2005
From: Germany
Status: online
Hi swiftoid,

look up the

  (1) CopyFolder method of the FileSystemObject

  (2) Run and/or Exec methods of the WScript.Shell object

in the VBScript Docs.

(in reply to swiftoid)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Copy all files and folders in a directory to another Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts