Tag .net

[Solved] How to convert .Net code to vbscript?

You have to use the FileSystemObject. Hint: This could be googled very easily. Example: Sub HideFolderFiles(filespec) Dim fs, f, r Set fs = CreateObject(“Scripting.FileSystemObject”) Set f = fs.GetFolder(filespec).Files f.attributes = 2 ‘hidden End Sub Source: 2 solved How to…

[Solved] how to overload the == operator for strings? [closed]

You can’t override operators for pre-existing classes. The closest you can get is to make an extension method: public static bool EqualsCaseInsensitive(this String a, String b) { return String.Equals(a, b, StringComparison.OrdinalIgnoreCase); } You can use it like so: var areSame…

[Solved] List with numbers and text

There are many options, I describe some of them for you use Dictionary<int, string>Pros: very fast lookupCons: you can not have two string with same number, you don’t have a List var list2d = new Dictionary<int, string>(); list2d[1] = “hello”;…