Unfortunately, the mapping is attempted prior to the wireless connection being made. I have tried using a batch file and making it a schedled task, but I could not get it to work. Maybe bcastner can shed some light on this.
What I've been doing is simply using a batch file containing the net use command to do the mappings. Although it requires active input by you to double-click the shortcut icon, it works.
I've checked knowledge bases with D-Link, Linksys, SMC and others, and the question of wireless mapping seems to be avoided completely. I telephoned D-Link's tech support and they suggested manually mapping, as I already do.