Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Following from this: <a href="http://msdn.microsoft.com/en-us/library/aa363908%28v=VS.85%29.aspx">http://msdn.microsoft.com/en-us/library/aa363908%28v=VS.85%29.aspx</a></p> <p>...it seems you can instantiate a subst globally via either the win api or possibly directly in the registry using the DefineDosDevice function or method. Sorry, I do not know how this may or may not apply to IIS, but it is working for me with apache...</p> <p>My problem was attempting to use subst for a folder for apache, which needs to see the mount as system user, or globally (so subst doesn't work). Any way you try to do a subst, even using something such as RunAsSystem, will fail to produce a viable result.</p> <p>However, I found that by creating the DosDevice in the registry I have a viable 'subst' mount that apache/mysql/php-win can use. You can also find ways of doing it via wmi, vb, c+, etc, and I do not know if (I doubt) the registry method is directly the same, but here it is...</p> <p>Example, I want: subst S: C:\PortableUSB</p> <p>asA.reg file...</p> <pre><code>Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices] "S:"="\\??\\C:\\PortableUSB" </code></pre> <p>Or, in the registry it will look like this (so you can manually add it this way)... A String Name of "S:" (without the quotes. Use your preferred DriveLetter, of course) This String's Value is "\??\C:\PortableUSB" (without the quotes. Use your own path, of course)</p> <p>Requires a restart. The subst is persistent and available globally. I do not yet know how reliable it is, but I am using it with success so far. TwoHawks</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload