Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > copy directory


Reply
 
Thread Tools Display Modes
  #1  
Old 11-23-2003, 03:07 PM
wehttam13's Avatar
wehttam13 wehttam13 is offline
Freshman
 
Join Date: Feb 2003
Posts: 48
Default copy directory


If i'm trying to set up my own install program that will copy all the files that i need to run a program off of a cd, how do i go about making that program copy each directory from a specific path, and also copy everything inside of that?
thanks
Reply With Quote
  #2  
Old 11-23-2003, 03:13 PM
reboot's Avatar
reboot reboot is offline
Keeper of foo

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Graceland
Posts: 15,612
Default

SHFileOperation is one way. The other way would be to write code to loop through the directories manually and copy each file.
__________________
~ Quod non mortiferum, fortiorem me facit ~

Avatar by lebb
Reply With Quote
  #3  
Old 11-23-2003, 03:41 PM
John Keymer John Keymer is offline
Banned
 
Join Date: Nov 2002
Posts: 117
Default

Quote:
Originally Posted by wehttam13
If i'm trying to set up my own install program that will copy all the files that i need to run a program off of a cd, how do i go about making that program copy each directory from a specific path, and also copy everything inside of that?
thanks



you could use the DOS command xcopy then do:

xcopy CD:\DIR\*.* HDD:\DIR\
Reply With Quote
  #4  
Old 11-23-2003, 03:49 PM
reboot's Avatar
reboot reboot is offline
Keeper of foo

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Graceland
Posts: 15,612
Default

Seems pretty silly to me to use a high level language like VB as a batch file interpreter.
__________________
~ Quod non mortiferum, fortiorem me facit ~

Avatar by lebb
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy text file from the web to app directory ROMBUSTERS Communications 0 11-08-2003 10:57 PM
Copy Exe to new directory freestyler General 2 04-12-2003 05:26 AM
Copy file to another directory outlaw187 General 1 05-17-2002 05:54 AM
Hekp Importing Excel JonM Word, PowerPoint, Outlook, and Other Office Products 2 05-01-2002 09:45 AM
How do I Directory Copy? Paul O General 2 02-26-2002 08:13 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->