I need to map a network drive into a network path using VBScript. The network path is read directly from input. How should I map the network drive and how to check whether t
run the following command in you vbscript file:
net use [NetDrive:] [Network Path]
for example:
net use Z: \\Hadi\temp
The sample command will map \Hadi\temp to Z:
Also take a look at this VBScript file for mapping network drives.