As far as i can from running this application on my mums laptop its working fine, but i just want people to double check, basicly im trying to backup her work and stuff from her laptop to my desktop (hence im using fixed paths)
This will run at login but her laptop can take like 10seconds-1minute to connect to wireless network so i've added in a little wait timer style thing, so it will look for shared location, if its not found hopefully sleep for 10seconds and try again
as i said it seems to be working but if people could just double check (source code wise anyway!), its not too clever - just overwrites stuff, dosent check for newer files etc. but thats not too important to be frank.
Also despite having a form attached it dosent seem to display, just runs in the background - this isn't a problem but just curious as to why this might be
ta
alec
This will run at login but her laptop can take like 10seconds-1minute to connect to wireless network so i've added in a little wait timer style thing, so it will look for shared location, if its not found hopefully sleep for 10seconds and try again

as i said it seems to be working but if people could just double check (source code wise anyway!), its not too clever - just overwrites stuff, dosent check for newer files etc. but thats not too important to be frank.
Code:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Main:
If My.Computer.FileSystem.DirectoryExists("\\Alec-Desktop-1\Profile\") Then
My.Computer.FileSystem.CopyDirectory("C:\Users\Frances\Documents\", "\\Alec-Desktop-1\Profile\Documents\", True)
My.Computer.FileSystem.CopyDirectory("C:\Users\Frances\Desktop\", "\\Alec-Desktop-1\Profile\Desktops\", True)
My.Computer.FileSystem.CopyDirectory("C:\Users\Frances\Favorites\", "\\Alec-Desktop-1\Profile\Favorites\", True)
Close()
Else
System.Threading.Thread.CurrentThread.Sleep(10000)
GoTo Main
End If
End Sub
End Class
Also despite having a form attached it dosent seem to display, just runs in the background - this isn't a problem but just curious as to why this might be

ta
alec