I’d always used
pushd to store the location of working directories when writing bat scripts. I didn’t realise that you could also use the
pushd command to access unc paths:
This command creates a new drive for the share. You can use
popd to remove the drive association with the UNC share.