yes, that is the idea.

i have tried the command
use x: "\\192.xxx.xxx.xxx\share" /user:xx /password:xx

but i get error 67( bad net name ) on the @error macro