Frippe,

you are using the @logon server to read the text file from and since the contents will be available on all DCs (replication) it will read the file contents ok, but you also use @lserver to map the drives to. could it be that you are validated by a different DC (server02 ??) than the server where the shares are defined ?
do a "? @lserver" somewhere to find out.

There could also be another problem (permissions etc.) try running the script in debug mode and after the "use $drive: $resource" line in the function, evaluate @error / @serror


you just beat me by a minute or so there

[ 26 January 2002: Message edited by: mvdw ]

_________________________
rgrds, Maarten