Hello frineds
I have made a VB6 project to copy a folder in drive "C" when form launchs. When I launch the form next time I want to know If it exists in drive "C" and I want to stop copying it again to the drive "C" Please let me kmow how to do this with Vb6
dpgodage
How to seek a folder I have made in drive "C"
Started by dpgodage, Jul 13 2010 06:58 AM
4 replies to this topic
#1
Posted 13 July 2010 - 06:58 AM
|
|
|
#2
Posted 13 July 2010 - 07:15 AM
i suggest you to post your code so that we can help you out what you are looking out for :)
#3
Posted 21 July 2010 - 01:28 AM
suggest you to post your code so that we can help you out what you are looking out for
Read more: How to seek a folder I have made in drive "C"
Read more: How to seek a folder I have made in drive "C"
#4
Posted 07 October 2010 - 02:07 AM
dpgodage said:
Hello frineds
I have made a VB6 project to copy a folder in drive "C" when form launchs. When I launch the form next time I want to know If it exists in drive "C" and I want to stop copying it again to the drive "C" Please let me kmow how to do this with Vb6
dpgodage
I have made a VB6 project to copy a folder in drive "C" when form launchs. When I launch the form next time I want to know If it exists in drive "C" and I want to stop copying it again to the drive "C" Please let me kmow how to do this with Vb6
dpgodage
'the Folder i have and want to copy to a new location
Dim SourceFolder As String = "C:\Example"
'the end location i want my folder to be
Dim CopiedFolder As String = "C:\Folder\Example"
Dim folderExists As Boolean
Try
folderExists = My.Computer.FileSystem.DirectoryExists(CopiedFolder)
If folderExists = True Then
'Dont copy, its already there
Else
'Its not there, Copy the folder again
My.Computer.FileSystem.CopyDirectory(SourceFolder, CopiedFolder)
End If
Catch ex As Exception
MsgBox("My Computer is Too Stupid to Complete this Simple task, It Failed Because " & ex.Message, MsgBoxStyle.Critical)
End Try
#5
Posted 13 October 2010 - 01:23 AM
gfdsgfdsfsdf


Sign In
Create Account

Back to top









