Hi,

thanks for all the help. Going better and better now! now there's the following:

I've tried a bit of creative copy pasting (from the Maprinter.udf) and created the NETUSE.udf file:
Code:
  
; NETUSE()
Function NETUSE($nDrive, $nUse, Optional $bVerbose)

If USE $nDrive +$nUse
"Kan schijf '"+$nDrive+"' niet verbinden"+@CRLF
"Reden: ["+@ERROR+"] "+@SERROR+@CRLF
Exit @ERROR
Else
"Schijf '"+$nDrive+"' succesvol verbonden met '"+$nUse+"."+@CRLF
EndIf

Exit @ERROR
EndFunction



but it gives me an error message:

Error in expression.

Now I had a couple of questions:

- what am I doing wrong?
- is there a reason to specify a variable with the small caption first ($sPrinter) ?
- why isn't there a argument after "If USE $nDrive +$nUse
"?

regards,

jeroen