(imported topic written by jskim91)
Hi I have this batch file I created and I want to know how to run and change one line to the computer name. it looks like this :: script that installs DAG
::
::
:: delete old code C:\IDS\Dag
rmdir C:\IDS\Dag /S /Q
::
:: copy all folders to C:\IDS\Dag
xcopy Dag C:\IDS\Dag /E /R /I /F /Y
::
:: run DagSetup that sets up registry
C:\IDS\Dag\DAG_Setup\bin\Release\DagSetup.exe
::
::Set IDS Name
set vIDSName=IDS85026C
::
:: Replace IDSName in DagConfig.xml amd logconfig.xml
Cscript.exe Replace.vbs IDSXXXXXC %vIDSName% C:\IDS\Dag\Config\DagConfig.xml
Cscript.exe Replace.vbs IDSXXXXXC %vIDSName% C:\IDS\Dag\Config\logconfig.xml
::
:: Enable 32 bit Applications on 64-bit
Cscript.exe C:\Inetpub\Adminscripts\adsutil.vbs SET W3SVC\AppPools/Enable32bitAppOnWin64 1
::
:: Load all libraries for ASP.NET v2.0.50727
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
::
:: Enable Web Extension
Cscript.exe C:\WINDOWS\system32\iisext.vbs /EnExt “ASP.NET v2.0.50727 (32-bit)”
::
:: Create Virtual Directories for DAG Web Services
DAGCreateShares.bat
I want to change the “set vIDSNAME=IDS85026C” it needs to be the name of the computer name on ever machine