Showing tag results for string manipulation

Nov 13, 2007
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Extract a User Name and Drive Name From a String Value?

ScriptingGuy1

Hey, Scripting Guy! We currently have user home directory information stored in this format: kenmyer on 'atl-fs-001\vol' (U:). How I can extract the user name and drive letter and change the format to this: U:\kenmyer?-- AR Hey, AR. Well, it’s Monday, day 1 of the TechEd IT Forum, and the Scripting Guys have arrived in Barcelona, Spain. Barcelon...

Scripting Guy!scripting techniquesVBScript
Oct 4, 2007
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Convert an Extension Number to an Actual Phone Number?

ScriptingGuy1

Our phone numbers are stored in Active Directory as extension numbers; however, we have a set of rules for converting those extensions to actual phone numbers. I’m writing a script to create an Outlook signature, but in that script I need to be able to convert an extension to a phone number. How do I do that?-- SM Hey, SM. You know, you are look...

Scripting Guy!scripting techniquesVBScript
Sep 1, 2007
Post comments count0
Post likes count0

How Can I Remove All the Non-Alphabetic Characters in a String?

ScriptingGuy1

Hey, Scripting Guy! How can I remove all the non-alphabetic characters in a string?-- CD Hey, CD. You know, typically the Scripting Guys don’t play favorites; we treat all our readers and all the questions we receive exactly the same. (OK, so, technically that means that, for the most part, we simply ignore all our readers as well as all the que...

Scripting Guy!scripting techniquesVBScript
Jul 21, 2007
Post comments count0
Post likes count0

How Can I Delete Specified Characters From the Beginning and End of My File Names?

ScriptingGuy1

Hey, Scripting Guy! How can I truncate file names by removing a common beginning and ending, leaving only the unique middle portion of the name?-- RE Hey, RE. Before we answer your question we’d like to point out that we’ve finally posted the winners of the Scripting Guys TechEd Challenge. (If you are a winner we’ve got good news: our shipping ...

Scripting Guy!scripting techniquesVBScript
Nov 22, 2006
Post comments count0
Post likes count0

How Can I Locate a Value in a Text File and Then Parse the Line of Text Where the Value Was Found?

ScriptingGuy1

Hey, Scripting Guy! How can I open a CSV file, locate a value in column 1, then store the value in column 2 in a variable?-- THvdH Hey, HvdH. We have to be honest with you, it’s a little difficult for the Scripting Guy who writes this column to stay focused on his work today. After all, tomorrow is one of the biggest and best of all holidays in th...

Scripting Guy!scripting techniquesVBScript