I am trying to figure out how to write some sort of code that will go through the txt files in a folder and pull the data into fields plus the txt file name as well.
For example I would like to pull all data after a : or ? plus the file name into a database and then go to the next row in the database and pull the data from the next txt file in that folder.
This is an example layout of one of the files :
For example I would like to pull all data after a : or ? plus the file name into a database and then go to the next row in the database and pull the data from the next txt file in that folder.
This is an example layout of one of the files :
Code:
Computername______________________: ABCDEF001234AB Asset Tag: 1234567890 Serial Number: MXL1310D1F HDD Info DiskSize = 160041885696 Hard Drive Serial Number__________: WD-WCAV12345678 Hard Drive Model Number___________: 00AABB-12A3B Carefully review the information and make corrections if needed *** Please fill in the following answers and save it *** HD encrypted ( Yes or No )? Yes Primary user (Last, First)? Doe, John Your Name? Name, My
Comment