need help looping
ok i have a program that will check to see if a file exists and if so it will copy to a new location but i need it to only copy once a day incase the computer is left on but i want it to keep running here it is
PrivateSub Form1_Load(ByVal senderAs System.Object,ByVal eAs System.EventArgs)HandlesMyBase.Load
Dim FilesAsString
If 9 <My.Computer.Clock.LocalTime.DayThenFiles =
"Shaner Lawns " &My.Computer.Clock.LocalTime.Month &"-" &My.Computer.Clock.LocalTime.Day &"-07.qbb"ElseFiles =
"Shaner Lawns " &My.Computer.Clock.LocalTime.Month &"-0" &My.Computer.Clock.LocalTime.Day &"-07.qbb"EndIfIf File.Exists("C:\Users\Mr. Brian Shaner\Documents\" & Files)ThenDim LocAsStringLoc =
"C:\Users\Mr. Brian Shaner\Documents\" & FilesDim MomAsStringMom =
"\\MOMROOM\SharedDocs\syscombkup1\" & FilesDim SisAsStringSis =
"\\G_COM\SharedDocs\syscombkup2\" & FilesMy.Computer.FileSystem.CopyFile(Loc, Mom,True)My.Computer.FileSystem.CopyFile(Loc, Sis,True)EndIfEndSubok i want this part of the code to continueally loop no matter what but to only copy once a day if the file exists
note the filename is created taking the date ie. Shaner Lawns m-dd-yy

