Folders created with ** SUBST cmd ** do not work on IIS 6

Folders created with SUBST cmd do not work with IIS 6 . In IIS 7 (with windows 7), the virtual disk is not displayed when viewing the inorder to set the physical path for the virtual directory.

Can someone tell me how to solve this problem? Is there a better way to create a virtual disk besides SUBST

+3
source share
2 answers

After that: http://msdn.microsoft.com/en-us/library/aa363908%28v=VS.85%29.aspx

... it seems you can create an instance under the global path, either using win api, or, possibly, directly in the registry, using the DefineDosDevice function or method. Sorry, I don't know how this may or may not apply to IIS, but it works for me with apache ...

My problem was trying to use subst for the apache folder, which should see the mount as a system user or globally (so the subconnection does not work). Any way that you try to perform a lookup, even using something like RunAsSystem, cannot provide a viable result.

, , , DosDevice , Windows, apache/mysql/php-win. wmi, vb, c + .., , ( ), , ...

: : subst S: C:\PortableUSB

asA.reg ...

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices]
"S:"="\\??\\C:\\PortableUSB"

, ( )... "S:" ( . , , DriveLetter) "\??\C:\PortableUSB" ( . , )

. . , , . TwoHawks

+5

, subst Windows 7, , . (, , , .)

, IIS .

+1

Source: https://habr.com/ru/post/1745052/


All Articles