*Code inside* File.GetCreationTime and For Each... Question
Well, it stands obvious i am building a app to do some simple stuff. Bassically I'm trying to make it pull a date from a text file. Then compare that date to the creation date of files in a directory with multipe sub directories.So, question is.
1. To compare mulitple dates within mulitple directories in a loop, can i build an 1-d array for subdirectory names and one for files names, then use those as the (dir) and (file(x)) in a File.GetCreationdate(dir+(file(x)) where the " x " is incremented by one at the end of each part of the file loop. When it reaches the end of the file array, it steps up one in the (dir) array, zeros' out the "X" for the file array, and does goes back to the (file(x)) array again? If so, what object / method would you suggest to build the arrays?
2. Can you nest "For Each / Next" statements. We never got to that chapter in text books and I'm reading it right now.
Thank you in advance. I'll post a code sample when I put it together. The timing is based on free time... works has been a pain in rear lately.
Well, it stands obvious i am building a app to do some simple stuff. Bassically I'm trying to make it pull a date from a text file. Then compare that date to the creation date of files in a directory with multipe sub directories.So, question is.
1. To compare mulitple dates within mulitple directories in a loop, can i build an 1-d array for subdirectory names and one for files names, then use those as the (dir) and (file(x)) in a File.GetCreationdate(dir+(file(x)) where the " x " is incremented by one at the end of each part of the file loop. When it reaches the end of the file array, it steps up one in the (dir) array, zeros' out the "X" for the file array, and does goes back to the (file(x)) array again? If so, what object / method would you suggest to build the arrays?
2. Can you nest "For Each / Next" statements. We never got to that chapter in text books and I'm reading it right now.
Thank you in advance. I'll post a code sample when I put it together. The timing is based on free time... works has been a pain in rear lately.
Last edited: