The command NET USE allows you to setup a mapped network drive and follows this syntax:
net use <drive letter><network path>
You substitute the variables with your drive information:
net use F: \\server\files
And voila, there's your basic script.
Save the notepad file as <whatevername>.bat