Click here to Skip to main content
16,005,389 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Passing objects byref to a remote server using .Net remoting Pin
nlarson1119-Oct-06 5:37
nlarson1119-Oct-06 5:37 
QuestionMake a software dir like snapfiles Pin
NewbieCoder12318-Oct-06 5:23
NewbieCoder12318-Oct-06 5:23 
Questionsend files directly to printer Pin
adairjk18-Oct-06 4:23
adairjk18-Oct-06 4:23 
AnswerRe: send files directly to printer Pin
adairjk18-Oct-06 4:45
adairjk18-Oct-06 4:45 
QuestionWindows Media Player Plugins Pin
slim_az18-Oct-06 4:13
slim_az18-Oct-06 4:13 
QuestionCopy zip folder to back folder Pin
jds120718-Oct-06 4:02
jds120718-Oct-06 4:02 
AnswerRe: Copy zip folder to back folder Pin
nlarson1118-Oct-06 4:11
nlarson1118-Oct-06 4:11 
GeneralRe: Copy zip folder to back folder Pin
jds120718-Oct-06 5:04
jds120718-Oct-06 5:04 
Here are my two functions that I call under button click:

Public Function CreateZip(ByVal source As String, ByVal destination As String) As Boolean
If (Not (File.Exists(source))) Then
Return False
End If

If (Not (Directory.Exists(destination))) Then
Return False
End If
Try
Dim fastZip As FastZip = New FastZip
fastZip.CreateZip(destination, source, True, "", "")
Catch
Return False
End Try
Return True
End Function

Public Sub Folder()

Dim dirName As String = DateTime.Now.ToString("MM_dd_yyyy hh.mm.ss")
Dim fullPath As String = Path.Combine("C:\Data Feeds\Backup\", dirName
If (Not (Directory.Exists(fullPath))) Then
Directory.CreateDirectory(fullPath)
ElseIf (Directory.Exists(fullPath)) Then
Directory.CreateDirectory(fullPath(2))
End If
End Sub

I want to know how to copy the destination folder to the fullPath folder when it is created.


jds
GeneralRe: Copy zip folder to back folder Pin
nlarson1118-Oct-06 5:13
nlarson1118-Oct-06 5:13 
GeneralRe: Copy zip folder to back folder Pin
jds120718-Oct-06 5:30
jds120718-Oct-06 5:30 
GeneralRe: Copy zip folder to back folder Pin
nlarson1118-Oct-06 5:35
nlarson1118-Oct-06 5:35 
GeneralRe: Copy zip folder to back folder Pin
jds120718-Oct-06 5:51
jds120718-Oct-06 5:51 
GeneralRe: Copy zip folder to back folder Pin
nlarson1118-Oct-06 6:37
nlarson1118-Oct-06 6:37 
GeneralRe: Copy zip folder to back folder Pin
jds120718-Oct-06 7:28
jds120718-Oct-06 7:28 
GeneralRe: Copy zip folder to back folder Pin
Dave Kreskowiak18-Oct-06 7:31
mveDave Kreskowiak18-Oct-06 7:31 
Questionconnecting access database Pin
pusha18-Oct-06 3:41
pusha18-Oct-06 3:41 
AnswerRe: connecting access database Pin
Christian Graus18-Oct-06 4:32
protectorChristian Graus18-Oct-06 4:32 
QuestionDatagridview not refreshing Pin
Rey999918-Oct-06 3:07
Rey999918-Oct-06 3:07 
AnswerRe: Datagridview not refreshing Pin
Sebrell18-Oct-06 5:05
Sebrell18-Oct-06 5:05 
QuestionRe: Datagridview not refreshing Pin
Rey999918-Oct-06 5:28
Rey999918-Oct-06 5:28 
AnswerRe: Datagridview not refreshing [modified] Pin
Sebrell18-Oct-06 8:24
Sebrell18-Oct-06 8:24 
GeneralRe: Datagridview not refreshing Pin
Rey999918-Oct-06 20:40
Rey999918-Oct-06 20:40 
AnswerRe: Datagridview not refreshing Pin
Rey999919-Oct-06 4:34
Rey999919-Oct-06 4:34 
QuestionHow to trap keystrokes in .NET controls by using Visual Basic .NET Pin
hisuman10018-Oct-06 2:42
hisuman10018-Oct-06 2:42 
AnswerRe: How to trap keystrokes in .NET controls by using Visual Basic .NET Pin
nlarson1118-Oct-06 3:35
nlarson1118-Oct-06 3:35 

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.