Greetings!
I just signed up and performed a normal, then advanced search, and combed through the 70+ threads that were returned in the search results. None of them really answered my question, so I am posting in hopes of finding some help. (Either my terms weren't spot-on or the topic hasn't been covered yet)
I am posting my question in hopes of getting some help.
I have several large shares on my home network that contain about 5TB of data total in about 1.4 million files. It's all the home movies and pictures and stuff for my 60+ member extended family for the last 3+ decades. (Kodak loves us)
From a file management standpoint, it's more than a little cumbersome to manage that many files so I want to automate the process of gathering the information.
I currently have a rudimentary MS Access 2003 database in which I programmed a Macro to change drives to the shared drive and call the DOS command:
Dir /S /N /Q /T:W /4 >d:\MyFiles\Input.txt
That command gives me the following information and pipes it to a text file:
File Name
Size
Last accessed Date/Time
Owner
Full pathname to file
I then take that text file and manipulate the crap out of it to pull the information out and populate several temporary tables that hold the information I need, and it then populates the "final" table with the information above, AND the pathname to each file.
It's a very cumbersome method that takes 25+ clicks of the "ok" button as I yank various bits of information out of the text file, then put it into temporary tables, then populate the "real" table from the various tables.
I understand there is a method to pull the information straight from the filesystem(?) to populate the table from within MS Access itself so I do not have to deal with the major manipulation of the DOS text file.
What I want to do is have a button in my MS Access table that calls the filesystem and recursively lists all files and folders on my shared drive to a table, skipping all the DOS crap, and lists the following file & folder information:
File Name
Size
Last Modified Date/Time
Last Accessed Date/Time
Owner
Full pathname to file
I found a great little MS Excel macro that does this for a spreadsheet, which I attached, but I have too many files (well over 1 million files)
I found a script at Allen Browne's great site that grabs some of the information but I can't seem to get it to work to grab the rest of the information I need. The date field in his script seem to default to Today's date (If I follow his instructions) and no date at all if I leave the Default Value field blank in the Field Definition. That leaves me with only the file name and path. I need the Size, Last Modified Date/Time, Last Accessed Date/Time, and Owner information as well.
I really need that extra information to help determine when files can be archived to DVD and sent to my relatives because I am running out of disk space, lol.
Can I get some assistance on making the script grab the rest if the information I need, please? I'm not allowed to post the link because I don't have 5 posts or more, so I have to point you to the post in a round-about manner.
There is no www in the link below.
The script is at allenbrowne dot com/ser-59alt.html
I just signed up and performed a normal, then advanced search, and combed through the 70+ threads that were returned in the search results. None of them really answered my question, so I am posting in hopes of finding some help. (Either my terms weren't spot-on or the topic hasn't been covered yet)
I am posting my question in hopes of getting some help.
I have several large shares on my home network that contain about 5TB of data total in about 1.4 million files. It's all the home movies and pictures and stuff for my 60+ member extended family for the last 3+ decades. (Kodak loves us)
From a file management standpoint, it's more than a little cumbersome to manage that many files so I want to automate the process of gathering the information.
I currently have a rudimentary MS Access 2003 database in which I programmed a Macro to change drives to the shared drive and call the DOS command:
Dir /S /N /Q /T:W /4 >d:\MyFiles\Input.txt
That command gives me the following information and pipes it to a text file:
File Name
Size
Last accessed Date/Time
Owner
Full pathname to file
I then take that text file and manipulate the crap out of it to pull the information out and populate several temporary tables that hold the information I need, and it then populates the "final" table with the information above, AND the pathname to each file.
It's a very cumbersome method that takes 25+ clicks of the "ok" button as I yank various bits of information out of the text file, then put it into temporary tables, then populate the "real" table from the various tables.
I understand there is a method to pull the information straight from the filesystem(?) to populate the table from within MS Access itself so I do not have to deal with the major manipulation of the DOS text file.
What I want to do is have a button in my MS Access table that calls the filesystem and recursively lists all files and folders on my shared drive to a table, skipping all the DOS crap, and lists the following file & folder information:
File Name
Size
Last Modified Date/Time
Last Accessed Date/Time
Owner
Full pathname to file
I found a great little MS Excel macro that does this for a spreadsheet, which I attached, but I have too many files (well over 1 million files)
I found a script at Allen Browne's great site that grabs some of the information but I can't seem to get it to work to grab the rest of the information I need. The date field in his script seem to default to Today's date (If I follow his instructions) and no date at all if I leave the Default Value field blank in the Field Definition. That leaves me with only the file name and path. I need the Size, Last Modified Date/Time, Last Accessed Date/Time, and Owner information as well.
I really need that extra information to help determine when files can be archived to DVD and sent to my relatives because I am running out of disk space, lol.
Can I get some assistance on making the script grab the rest if the information I need, please? I'm not allowed to post the link because I don't have 5 posts or more, so I have to point you to the post in a round-about manner.
There is no www in the link below.
The script is at allenbrowne dot com/ser-59alt.html