netstat -an | find /c "ESTABLISHED"
find /c: Displays only the count of lines containing the string.
More Related Contents:
- Variables are not behaving as expected
- Single line with multiple commands using Windows batch file
- Batch file to delete files older than N days
- How to have multiple colors in a Windows batch file?
- How do I measure execution time of a command on the Windows command line?
- Is there a command to refresh environment variables from the command prompt in Windows?
- Windows Batch Variables Won’t Set
- Where is “START” searching for executables?
- Escape double quotes in parameter
- How to verify if a file exists in a batch file?
- Windows command to convert Unix line endings?
- windows batch SET inside IF not working
- Why git can’t remember my passphrase under Windows
- Batch files: List all files in a directory with relative paths
- How to run a PowerShell script within a Windows batch file
- Windows batch script to parse CSV file and output a text file
- Using parameters in batch files at Windows command line
- How to run a command on command prompt startup in Windows
- Convert a small PS script into a long line in a .BATch file
- How to open an elevated cmd using command line for Windows?
- What is the easiest way to reset ERRORLEVEL to zero?
- How can you get the clipboard contents with a Windows command?
- Delete files or folder recursively on Windows CMD
- How to test if a path is a file or directory in Windows batch file?
- How can I open a cmd window in a specific location?
- Delete all files and folders in a directory
- Windows command interpreter: how to obtain exit code of first piped command
- What would be the Windows batch equivalent for HTML’s input type=”password”?
- How to detect if CMD is running as Administrator/has elevated privileges?
- How to update system PATH variable permanently from cmd?