Page 1 of 1

How to use Find Results and create Variables based on that?

Posted: Fri Dec 11, 2015 4:32 pm
by livechatpro
How can I find the default path used by IIS on a Windows 2008/2012 Sever, and then create a variable based on the result containing the path? This variable could be used later in the installation steps.

Example: find the default path used by IIS7; a possible result would be = d:\inetpub\wwwroot. This would be Result1
Create a variable based on the result above (Ex.: d:\inetpub\wwwroot) | Result1=Variable1
Variable1 = 'd:\inetpub\wwwroot'

then I could use the variable to move files:

Move Local Files Variable1\FolderName to Variable1\MovedFolderName

Any help will be appreciated.

Re: How to use Find Results and create Variables based on th

Posted: Mon Dec 14, 2015 11:05 am
by FrancescoT
Dear Livechatpro,

in reality such variable should be already available. You can check for its presence within the File page of your project (Design view).
WWWROOTDIR.png
WWWROOTDIR.png (13.53 KiB) Viewed 2563 times

Anyway if it's not, in the File page right click the "Target Folders" node then; Add System Folder -> WWW->WWWRoot.

Hope this helps you.

Regards