How to use Find Results and create Variables based on that?
Posted: Fri Dec 11, 2015 4:32 pm
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.
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.