how can create a directory, in add site command using appcmd.exe?

288 Views Asked by At

When I am using the appcmd.exe for creating a website, I need a physical Path address in the command. How can I create directory when I am running this address:

%systemroot%\system32\inetsrv\AppCmd.exe add site /name:websitename /id:4 /physicalPath:C:\inetpub\wwwroot\example12 /bindings:http/*:80:example.com

On above command, "example12" directory doesn`t exist. And I want when running a command, that directory creating that address Automatically.

0

There are 0 best solutions below