Hello,
Wondered if you can help, I am looking for a script or program, that will search a folder full of text files, then pull data lines from txt file and place into a database or CSV file.
Example of a txt file (there 2,000 files)
System Snapshot - Tue 10/04/2007 8:46:05.46
Last User: s2101389
System Name: C09730
System Manufacturer: Viglen
System Model: GENIE D865GLC
BIOS Manufacturer: Intel Corp.
BIOS Version: BIOS Date: 01/22/04 09:53:47 Ver: 08.00.10
BIOS Serial Number: 1739056
Processor: Intel(R) Pentium(R) 4 CPU 2.80GHz 2793MHz
OS Name: Microsoft Windows 2000 Professional
OS Version: 5.0.2195
Service Pack: 4
Windows Directory: C:\WINNT
Locale: English United States
Total Physical Memory: 511MB
Free Physical Memory: 160MB
Total Disk Space (SystemDrive): 33503MB
Free Disk Space (SystemDrive): 11043MB
Internet Explorer Version: 6.0.2800.1106
Current Users Profile: C:\Documents and Settings\s2101307
Windows 2000 IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : chelt.local
Description . . . . . . . . . . . : Intel(R) PRO/100 VE Network Connection
Physical Address. . . . . . . . . : 00-0C-F1-E1-41-81
IP Address. . . . . . . . . . . . : 10.59.11.241
Lease Obtained. . . . . . . . . . : 10 April 2007 08:41:48
Lease Expires . . . . . . . . . . : 18 April 2007 08:41:48
Software Installed
List of all software installed
Printer Connections
Server name
Printer name Microsoft Office Document Image Writer
Share name
Driver name Microsoft Office Document Image Writer Driver
Port name Microsoft Document Imaging Writer Port:
Location
Print processor ModiPrint
Data type RAW
Attributes 64
Default priority 0
Status Unknown
Average pages per minute 0
Server name
Printer name \\c12214\ICT RICOH Aficio 2020D PCL 6
Share name ICT OFFICE
Driver name RICOH Aficio 2020D PCL 6
Port name EQ_IP_10.59.1.233
Location PARK, LC004, ICT Office
Print processor WinPrint
Data type RAW
Attributes 540
Default priority 0
Start time 00h00
Until time 00h00
Status Unknown
Average pages per minute 0
Basically What i wanted, is a script or program that searches this files and caprures the follow info in a csv - The whole lines.
System Snapshot:
Last User:
System Name:
Processor:
Total Physical Memory:
Free Physical Memory:
Total Disk Space (SystemDrive):
Free Disk Space (SystemDrive):
Physical Address. . . . . . . . . :
IP Address. . . . . . . . . . . . :
Software Installed: (List in one field spaced)
Printer name:
If possiable all the required names as fields then all the details in one csv, If not just csv per file.
I been searching net all morning for something that would do it but cant find one.
If not possiable please let me know
Wondered if you can help, I am looking for a script or program, that will search a folder full of text files, then pull data lines from txt file and place into a database or CSV file.
Example of a txt file (there 2,000 files)
System Snapshot - Tue 10/04/2007 8:46:05.46
Last User: s2101389
System Name: C09730
System Manufacturer: Viglen
System Model: GENIE D865GLC
BIOS Manufacturer: Intel Corp.
BIOS Version: BIOS Date: 01/22/04 09:53:47 Ver: 08.00.10
BIOS Serial Number: 1739056
Processor: Intel(R) Pentium(R) 4 CPU 2.80GHz 2793MHz
OS Name: Microsoft Windows 2000 Professional
OS Version: 5.0.2195
Service Pack: 4
Windows Directory: C:\WINNT
Locale: English United States
Total Physical Memory: 511MB
Free Physical Memory: 160MB
Total Disk Space (SystemDrive): 33503MB
Free Disk Space (SystemDrive): 11043MB
Internet Explorer Version: 6.0.2800.1106
Current Users Profile: C:\Documents and Settings\s2101307
Windows 2000 IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : chelt.local
Description . . . . . . . . . . . : Intel(R) PRO/100 VE Network Connection
Physical Address. . . . . . . . . : 00-0C-F1-E1-41-81
IP Address. . . . . . . . . . . . : 10.59.11.241
Lease Obtained. . . . . . . . . . : 10 April 2007 08:41:48
Lease Expires . . . . . . . . . . : 18 April 2007 08:41:48
Software Installed
List of all software installed
Printer Connections
Server name
Printer name Microsoft Office Document Image Writer
Share name
Driver name Microsoft Office Document Image Writer Driver
Port name Microsoft Document Imaging Writer Port:
Location
Print processor ModiPrint
Data type RAW
Attributes 64
Default priority 0
Status Unknown
Average pages per minute 0
Server name
Printer name \\c12214\ICT RICOH Aficio 2020D PCL 6
Share name ICT OFFICE
Driver name RICOH Aficio 2020D PCL 6
Port name EQ_IP_10.59.1.233
Location PARK, LC004, ICT Office
Print processor WinPrint
Data type RAW
Attributes 540
Default priority 0
Start time 00h00
Until time 00h00
Status Unknown
Average pages per minute 0
Basically What i wanted, is a script or program that searches this files and caprures the follow info in a csv - The whole lines.
System Snapshot:
Last User:
System Name:
Processor:
Total Physical Memory:
Free Physical Memory:
Total Disk Space (SystemDrive):
Free Disk Space (SystemDrive):
Physical Address. . . . . . . . . :
IP Address. . . . . . . . . . . . :
Software Installed: (List in one field spaced)
Printer name:
If possiable all the required names as fields then all the details in one csv, If not just csv per file.
I been searching net all morning for something that would do it but cant find one.
If not possiable please let me know







Please provide a sample of what the CSV files should look like based on the TXT file you provided. That might help to scope out the complexity of what is requested. 