Davoud Teimouri

Virtualization & Datacenter

Left and Right functions for string variables in C# .NET

I think VB.NET is an easy learning language and most functions are predefined, C#.NET is most powerful and faster than VB.NET, but we need to write some functions in C# for ourselves such as string functions.

C# has “substring” function under String class and we can simulate VB.NET Left and Right function by that.
Code:
 

Find the Owning process associated with each connection and port

 You can use Netstat, FindSTR and TaskList commands for finding the owning process.Example:You want to find that which process is listening on port 8080. So first, find all process that listening on port 8080: netstat -a -n -o | findstr 8080 >> Result.txt or this command-line: netstat -a -n -o >> Result.csv - Find PID of the process that using 8080 port.Then check PID with task list result: tasklist /FI "PID eq {Process ID}" 

9,695 total views, 2 views today

Left and Right functions for string variables in C# .NET

Davoud Teimouri is as a professional blogger, vExpert 2015-2016-2017, VCA, MCITP. This blog is started with simple posts and now, it has large following readers.

Updated: 27/06/2017 — 5:52 pm

Leave a Reply

Your email address will not be published. Required fields are marked *

Teimouri.net © 2012 Frontier Theme
%d bloggers like this:
Read more:
RedHat Labs Application
Red Hat Access Labs – Review

What's Red Hat Access Labs? Red Hat Access Labs is a package of online application that you can use them to...

Close