Open command prompt and type:
net use
a list of active connections will be displayed.
To connect to a network type the following:
net use //ip_address_or_path_of_share password /user:Username
example-1
net use //MediaPC/Films yhTTgT6 /user:Jimmy
example-2
net use //192.168.0.44/Films yhTTgT6 /user:Jimmy
You can of course put these into a simple bat file and place them in your start up folder if you want to run each time Windows loads. Just add the word exit to the bottom of the bat file so that it auto closes.