Sorry, I am really new at kix scripting. I searched through previous threads looking for info on $line = readline(1). The follow script below reads each line from my csv file. Is there anyway of after reading each line to run the net share sharename /cache:no etc.

thanks v much

break on
$filename = "d:\shares1.csv"
if open(1,$filename) = 0
$line = readline(1)
while @error = 0
$array = split($line,",")
?
for each $field in $array
? $field
next
$line = readline(1)
loop
$= close(1)
endif
exit 1