I am trying to gather a specific number from a text file, then export that number to .csv.
For example, I have a text file called: log.txt under C:\data. When I open the file, It contents the words " UserData Size: 1014.288086 MB". I only need the number to shows in the CSV file, which is 1014.288086 in this case.
The ultimate goal is to gather the number from different remote computers, then export that number to CSV. Ideally save it to a network shared drive as the "computer name".
For example. In Computer1, once I run the scripts, I will get a CSV file (can be open with Excel) with just a number in it. Then save this file in this shared folder "\\central\result\" as the file name "computer1.csv "
So does Computer2. once I run the scripts, I will get a CSV file (can be open with Excel) with just a number in it. Then save this file in this shared folder "\\central\result\" as the file name "computer2.csv "
So if I have 100 computers, I should have 100 .CSV files with different names in the same shared folder.
Then I can merge them into one summary sheet for analyzing. (Which I will use Macros for merging and analyzing)
I hope this is clear and wish someone can guide me.
Thanks.