The VBScript Network and Systems Administrator's Cafe:

string

1

January 30, 2009  1:30 AM

Easy String Searches with the VBScript Instr function



Posted by: Jerry Lees
InStr function, Scripting, string, String manipulation, strings, VBScript

I recently had a situation where I needed to find string inside a string to parse the larger string into usable and separate chunks of data. In writing this script, I realized I've not shared this gem of a function with you previously... and it really makes matters easier when you are...

December 29, 2008  3:21 PM

Using special characters in VBScript strings



Posted by: Jerry Lees
ASCII, Special Characters, string, String manipulation, strings, VBScipt, working with variables

I just realized I've been using Visual Basic String constants in my scripts with little to no explanation. We'll rectify that situation right now! ;-) When dealing with strings in VBScript, you occasionally need to add formatting characters to a string, so that when it is displayed on the screen...


December 2, 2008  12:55 AM

Very simple encryption example with VBScript



Posted by: Jerry Lees
3des, decrypt, decrytption, encrypt, encryption, mid, Reverse Strings, RSA, string, String manipulation, StrReverse, Toolkit, VBScript

I previously mentioned a routine that I wrote to encrypt a string. Now, before the security folks look at the code... understand this: This is intended only to obscure a string from a casual prying eye. It is NOT intended to be a replacement for true encryption like 3DES and...


October 30, 2008  12:00 AM

A new found bug in VBScript that causes if then statements to return wrong comparisons (or is it?)



Posted by: Jerry Lees
Integer, string, Variable Types, variant, VBScript, working with variables

In the past I've cautioned you on always initializing your variables and encouraged you to always declare your variable types, rather than using the default variant type in VBScript. I'll be the first to admit I don't follow my own advice in my examples! However, variants can be...


1

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: