Map a network drive to be used by a service

前端 未结 12 2261
再見小時候
再見小時候 2020-11-22 10:43

Suppose some Windows service uses code that wants mapped network drives and no UNC paths. How can I make the drive mapping available to the service\'s session when the servi

12条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 11:23

    There is a good answer here: https://superuser.com/a/651015/299678

    I.e. You can use a symbolic link, e.g.

    mklink /D C:\myLink \\127.0.0.1\c$
    

提交回复
热议问题