Quote:

So it should be like this:




Sure, but you have the ShowStatus() UDF we defined earlier so why not use it? There is no point is typing the same code in many times:

Code:
; NETUSE()

Function NETUSE($nDrive, $nUse, Optional $bVerbose)
USE $nDrive $nUse
ShowStatus("Mapping "+$sDrive+" to "+$nUse,$bVerbose)
Exit @ERROR
EndFunction



PS. You don't need to keep a single UDF in a file, you can add more than one to the file and load it as a library using a single CALL.