Click here to Skip to main content
16,011,469 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionDatabase Programming Pin
Gagan.209-Oct-08 6:39
Gagan.209-Oct-08 6:39 
AnswerRe: Database Programming Pin
Jon_Boy9-Oct-08 7:04
Jon_Boy9-Oct-08 7:04 
AnswerRe: Database Programming Pin
Paul Conrad9-Oct-08 7:12
professionalPaul Conrad9-Oct-08 7:12 
QuestionHow to properly deploy interop app with Excel 9 reference? [modified] Pin
Jon_Boy9-Oct-08 5:35
Jon_Boy9-Oct-08 5:35 
AnswerRe: How to properly deploy interop app with Excel 9 reference? Pin
Jon_Boy10-Oct-08 2:49
Jon_Boy10-Oct-08 2:49 
GeneralRe: How to properly deploy interop app with Excel 9 reference? Pin
Dave Kreskowiak10-Oct-08 4:54
mveDave Kreskowiak10-Oct-08 4:54 
GeneralRe: How to properly deploy interop app with Excel 9 reference? Pin
Jon_Boy10-Oct-08 5:27
Jon_Boy10-Oct-08 5:27 
QuestionCopy directories/files Pin
cooper0000079-Oct-08 3:10
cooper0000079-Oct-08 3:10 
Hi

Does anyone know of a better quick way to copy directories/files in VB.net than using
[code]
Computer.FileSystem.CopyFile
[/code]

The reason is because I’m developing a system that copies files/directories from one or multiple location to one location, to do this I use the below function

[code]
Public Sub copyDirectory(ByVal strtoROOTlocation As String, ByVal strrootfromName As String, ByVal root As DirectoryInfo, ByVal intIndex As Integer, ByVal video As Boolean)


Dim strfromDirectoryFullPath As String = root.FullName

Dim strtoDrectoryName As String
Dim blcopy As Boolean
If intIndex = 0 Then
strtoDrectoryName = ""
Else
strtoDrectoryName = "\" + root.Name
End If

For Each fiifiles As FileInfo In root.GetFiles


If blcopy Then

'This will stop Un needed files being copied
If Not fiifiles.Extension = ".doc" And Not fiifiles.Extension = ".fla" And Not fiifiles.Extension = ".db" Then

My.Computer.FileSystem.CopyFile(strfromDirectoryFullPath + "\" + fiifiles.Name, strtoROOTlocation + "\" + strtoDrectoryName + "\" + fiifiles.Name, True)
'frmmain.build.BackgroundWorker1.ReportProgress("********" + fiifiles.Name, "full")

Else
End If
End If 'END IF (blcopy Second Level)
Next ' END Root Folder - Content Loop
Else
End If 'END IF (NO video)
For Each driirectory As DirectoryInfo In root.GetDirectories
copyDirectory(strtoROOTlocation + "\" + strtoDrectoryName, strtoROOTlocation + "\" + strtoDrectoryName, driirectory, intIndex + 1, video)

Next ' END Root Folder - Content Loop
End Sub
[/code]
This seems fine until it starts copying large files…

Does anyone know of a better way that I could increase the speed of copying large files..

Thanks
AnswerRe: Copy directories/files Pin
Dave Kreskowiak9-Oct-08 3:52
mveDave Kreskowiak9-Oct-08 3:52 
GeneralRe: Copy directories/files Pin
cooper0000079-Oct-08 4:12
cooper0000079-Oct-08 4:12 
GeneralRe: Copy directories/files Pin
cooper0000079-Oct-08 4:50
cooper0000079-Oct-08 4:50 
GeneralRe: Copy directories/files Pin
Dave Kreskowiak10-Oct-08 1:01
mveDave Kreskowiak10-Oct-08 1:01 
AnswerRe: Copy directories/files Pin
Paul Conrad9-Oct-08 7:14
professionalPaul Conrad9-Oct-08 7:14 
QuestionHow to send mail using local machine when proxy is Set at Remote(server) side Pin
rohitkpurohit9-Oct-08 1:16
rohitkpurohit9-Oct-08 1:16 
AnswerRe: How to send mail using local machine when proxy is Set at Remote(server) side Pin
Dave Kreskowiak9-Oct-08 3:41
mveDave Kreskowiak9-Oct-08 3:41 
GeneralRe: How to send mail using local machine when proxy is Set at Remote(server) side Pin
rohitkpurohit9-Oct-08 4:09
rohitkpurohit9-Oct-08 4:09 
GeneralRe: How to send mail using local machine when proxy is Set at Remote(server) side Pin
Dave Kreskowiak9-Oct-08 11:45
mveDave Kreskowiak9-Oct-08 11:45 
GeneralRe: How to send mail using local machine when proxy is Set at Remote(server) side Pin
rohitkpurohit11-Oct-08 17:44
rohitkpurohit11-Oct-08 17:44 
QuestionHow set the install directory after publishing Pin
DCAUB8-Oct-08 22:46
DCAUB8-Oct-08 22:46 
AnswerRe: How set the install directory after publishing Pin
Dave Kreskowiak9-Oct-08 3:39
mveDave Kreskowiak9-Oct-08 3:39 
GeneralRe: How set the install directory after publishing Pin
DCAUB9-Oct-08 10:25
DCAUB9-Oct-08 10:25 
GeneralRe: How set the install directory after publishing Pin
Dave Kreskowiak9-Oct-08 11:41
mveDave Kreskowiak9-Oct-08 11:41 
GeneralRe: How set the install directory after publishing Pin
DCAUB9-Oct-08 16:47
DCAUB9-Oct-08 16:47 
GeneralRe: How set the install directory after publishing Pin
Dave Kreskowiak10-Oct-08 0:59
mveDave Kreskowiak10-Oct-08 0:59 
Questionshell Pin
Shazz Rock8-Oct-08 20:50
Shazz Rock8-Oct-08 20:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.