creating a service that maps a network drive
Posted on 2002-05-22
I wrote and compiled the below module that maps the z: drive to a remote server, then added the executable as a service via INSTSRV. But when I attempt to start the service, it errors saying it can't start the service. What could be causing this?
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run ("net use z: \\server\c$ /persistent:yes")