how to map network drive for Clearcase View in Windows service?
问题 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. 回答1: 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