Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
@echo off setlocal enabledelayedexpansion :: *** Get the current date into the variables dd, mm, yy: set day = %date% echo %date% for /f "tokens=1-3 delims=/" %%a in ("%date%") do ( set dd=%%a set mm=%%b set yy=%%c ) set Feb=28 set /a Leap=yy %% 4 if "%Leap%"=="0" set Feb=29 set i=101 for %%a in (31 %Feb% 31 30 31 30 31 31 ott34 31 35 31) do ( set /a i+=1 if !i!==1%mm% set LastDay=%%a ) echo This month's last Day: [%LastDay%] if %dd%==%LastDay% echo Today is the last day of this month. echo ***** start business day script ***** echo 0=Sunday - 1=Monday - 2=Tuesday - 3=Wednesday - 4=Thursday - 5=Friday - 6=Saturday for /f %%x in ('wmic path win32_localtime get /format:list ^| findstr "="') do set %%x set day=%DayOfWeek% echo ***** number day: %DayOfWeek% ***** set result=false IF "%day%"=="6" set result=true IF "%day%"=="0" set result=true IF "%result%" == "true" ( ECHO ***** is not a business day ***** ) ELSE ( ECHO ***** business day %LastDay% ***** ) REM if %dd%==%LastDay% call fri.bat pause
Add your voice to the tech community where 5M+ people just like you are talking about what matters.