question

JerryRichards-9177 avatar image
0 Votes"
JerryRichards-9177 asked JerryRichards-9177 answered

How to assign wwwroot\files\pics to d:\pics

Linux has symlink. Visual Studio has Add as Link. Is there a way that I can assign a directory to a level under wwwroot?

I tried a virtual directory but that didn't work as expected. It appears to be a top level item only.

windows-server-iis
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JerryRichards-9177 avatar image
0 Votes"
JerryRichards-9177 answered

New-Item -ItemType SymbolicLink -Path "Link" -Target "Target"

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SamWu-MSFT avatar image
0 Votes"
SamWu-MSFT answered JerryRichards-9177 commented

Hi @JerryRichards-9177

How to assign wwwroot\files\pics to d:\pics
Is there a way that I can assign a directory to a level under wwwroot?

According to your description, I couldn’t understand your requirement clearly, your title is to assign a directory under wwwroot to d:\pics, but in your content you want to assign a directory to wwwroot. what exactly are your needs? please post more details information about your requirement.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@SamWu-MSFT thank you for the response.

In Linux we can assign a symbolic link (symlink) which points to another location on the system. Is possible to do the same with IIS?

j:\websites\mywebsite\wwwroot\files\pics --------> c:\otherfolder\anotherfolder\pictures


0 Votes 0 ·