G
Guest
Guest
Archived from groups: microsoft.public.win2000.file_system (More info?)
I'm trying to write a script that will recreate the file shares on a file
server i rebuilt. All the sharenames, sharepaths, descriptions are in a CSV
file.
I will use the WMI to create the shares, i just need to know the best way to
parse the CSV file to create my variables to let the WMI do its thing.
Sample of CSV file below
D:\Share1,Finance,0,,Finance Share
D:\Share2,HR,0,,Human Resources Share
D:\Share3\test,ShareName,0,10,Other Share
What is the best way to parse this?
I'm trying to write a script that will recreate the file shares on a file
server i rebuilt. All the sharenames, sharepaths, descriptions are in a CSV
file.
I will use the WMI to create the shares, i just need to know the best way to
parse the CSV file to create my variables to let the WMI do its thing.
Sample of CSV file below
D:\Share1,Finance,0,,Finance Share
D:\Share2,HR,0,,Human Resources Share
D:\Share3\test,ShareName,0,10,Other Share
What is the best way to parse this?