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:
 

Open Shared Folder By Different Credential

You can override stored credentials for shares in Windows via the Control Panel. I believe this should be possible since around Windows 2000, or at least XP. However, the names of these functions are different in all versions. I am using names from Windows 7 in this post.Open your account page in User Accounts and Family Safety. (Click your image in the start menu, or navigate through control panel). In the left hand side panel, select Manage your credentials. Under Windows Credentials:If the server in question has an entry, delete it. (Most likely it will not be present, if you haven't been here before). Select Add a Windows Credential. Enter the server (e.g. \\10.0.0.2\myShare). Enter new desired credentials.Now, when navigating manually to \\10.0.0.2\myShare, it will not use the old credentials any more.

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.

8,135 total views, 22 views today

Left and Right functions for string variables in C# .NET
Updated: 27/06/2017 — 5:52 pm

Leave a Reply

Teimouri.net © 2012 Frontier Theme
%d bloggers like this:
Read more:
VMware Client Integration Plugin – Critical Security Issue

Critical security issue is detected on VMware Client Integration Plugin (To access a virtual machine's console in the vSphere Web...

Close