Welcome! Log In


@echo off
rem Date and Time
for /f "tokens=1-3 delims=/- " %%a in ('date /t') do set XDate=%%a-%%b-%%c

for /f "tokens=1-2 delims=: " %%a in ('time /t') do set XTime=%%a.%%b

echo %XDate% %XTime%

md D:\_BACKUP-IIS\%XDate%

C:\Windows\System32\inetsrv\appcmd.exe list apppool /config /xml > D:\_BACKUP-IIS\%XDate%\apppools.xml

C:\Windows\System32\inetsrv\appcmd.exe list site /config /xml > D:\_BACKUP-IIS\%XDate%\sites.xml



Edited 1 time(s). Last edit at 10/15/2015 03:43PM by iznogoud.
Sorry, only registered users may post in this forum.

Click here to login