how to map network drive for Clearcase View in Windows service?

后端 未结 2 878
迷失自我
迷失自我 2021-01-15 11:45

I want to map a clearcase view on network drive inside a windows service.
I have tried with net use command, but it did not work properly.

2条回答
  •  春和景丽
    2021-01-15 12:21

    You should be able to run the same kind of command than the one used when paths are too long, which is subst:

    subst X: c:\path\to\my\View # for snapshot view
    subst X: M:\myView # for dynamic view
    

    in order to map a view to a drive letter.

    This should work from within a service, provided:

    • you are using your Windows account (and not the "Local System account")
    • the dynamic view is already started (and visible in the M:\ MVFS mounting point drive)

提交回复
热议问题