Sorry I completely missed the syntax error when reading your code.

NET USE is NOT valid KiXtart code.

net use y: \\srv\eolsdata

should be

use y: '\\srv\eolsdata'
_________________________
Home page: http://www.kixhelp.com/hb/