4
« on: August 17, 2018, 11:17 PM »
\\192.168.1.203 is enough in windows explorer to view NAS drives/shares.
Login is already accomplished.
This "timegap" is exactly what I needed to get off my arse and start coding.
In the past month I have managed to get a semi-working vbscript wrapped in a hta gui which is not quite there yet...
It presently takes the global variable NASPath = 192.168.1.203 and learns the entire NAS structure thru a seperate running process using a simple net view cmd saved to a txt file which is parsed and saved into 1 dimension of a 3 dimensional array. I then take the number of subfolders and names of all said subfolders on each drive and save them into another dimension of the array. Then came the tough part which took the past 2 weeks, figuring out all the possible regex patterns that could exist, extracting and writing them from actual names stored in the array and then writing the "dynamic" patterns back into the array so that they correspond with the actual subfolder names on each NAS drive.
a lot of crap like this.. If RE.Pattern= bla bla Then N = "^(" & Left(d,2) & ")[" & Right(Left(d,3),1) & "-" & Right(Left(d,7),1) & "].*"
Finally I saved the array into a config.ini file to speed up the second running of the program.
This was tougher than I thought, but I am at 689 lines of code and Im not gonna quit till this damn thing works.... (unless someone beats me to it then I will pause to admire their work before finishing this monstrosity.)
Craig