Sign In
TechNet Blogs
Technet Blog Images
More ...
Tweet tweet!
Translate this page
Powered by
Microsoft® Translator
Related Links
Blog Home
Script Center Home
Scripting Library
Learn to Script
Script Repository
Scripting Forum
2012 Scripting Games
Common Tasks
Blog Home
RSS for comments
RSS for posts
Atom
OK
Email Blog Author
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
2009 Summer Scripting Games (42)
2010 Scripting Games (115)
2011 Scripting Games (132)
2012 Scripting Games (125)
Active Directory (216)
ActiveX Data Objects (ADO) (30)
Advanced (70)
arrays hash tables and dictionary objects (29)
Beginner (96)
CSV and other delimited files (35)
databases (57)
dates and times (56)
desktop management (111)
displaying output (32)
event logs (45)
events and monitoring (37)
Excel spreadsheet (52)
Excel.Application (31)
files (140)
folders (74)
general management tasks (55)
getting started (299)
groups (39)
guest blogger (264)
Internet Explorer (31)
leaderboard (57)
local accounts and Windows NT 4.0 accounts (33)
Logs and monitoring (48)
Microsoft Excel (114)
Microsoft Outlook (49)
Microsoft Word (95)
multimedia (30)
Office (286)
operating system (229)
other Directory Services (34)
performance (32)
printing (31)
prize winners (32)
processes (48)
Quick-Hits Friday (88)
registry (82)
regular expressions (39)
running (86)
Scripting Guy! (2162)
scripting techniques (990)
Scripting Wife (85)
Sean Kearney (50)
searching Active Directory (63)
security (44)
servers (31)
services (31)
sponsors (38)
storage (211)
string manipulation (48)
text files (147)
troubleshooting (39)
user accounts (89)
using the Internet (38)
VBScript (1049)
Web pages and HTAs (71)
Weekend Scripter (186)
Windows PowerShell (1300)
Windows PowerShell ISE (33)
WMI (159)
writing (45)
Archives
Archives
May 2012
(29)
April 2012
(97)
March 2012
(44)
February 2012
(31)
January 2012
(31)
December 2011
(31)
November 2011
(30)
October 2011
(31)
September 2011
(30)
August 2011
(31)
July 2011
(31)
June 2011
(30)
May 2011
(31)
April 2011
(97)
March 2011
(41)
February 2011
(28)
January 2011
(31)
December 2010
(31)
November 2010
(30)
October 2010
(31)
September 2010
(30)
August 2010
(33)
July 2010
(31)
June 2010
(30)
May 2010
(67)
April 2010
(65)
March 2010
(34)
February 2010
(29)
January 2010
(23)
December 2009
(23)
November 2009
(22)
October 2009
(23)
September 2009
(22)
August 2009
(25)
July 2009
(24)
June 2009
(38)
May 2009
(22)
April 2009
(22)
March 2009
(22)
February 2009
(20)
January 2009
(22)
December 2008
(8)
November 2008
(17)
October 2008
(9)
September 2008
(8)
August 2008
(6)
July 2008
(5)
June 2008
(21)
May 2008
(21)
April 2008
(22)
March 2008
(21)
February 2008
(21)
January 2008
(22)
December 2007
(10)
November 2007
(20)
October 2007
(23)
September 2007
(19)
August 2007
(23)
July 2007
(21)
June 2007
(21)
May 2007
(22)
April 2007
(21)
March 2007
(22)
February 2007
(21)
January 2007
(21)
December 2006
(11)
November 2006
(20)
October 2006
(22)
September 2006
(20)
August 2006
(23)
July 2006
(20)
June 2006
(22)
May 2006
(22)
April 2006
(20)
March 2006
(23)
February 2006
(20)
January 2006
(21)
December 2005
(16)
November 2005
(20)
October 2005
(21)
September 2005
(21)
August 2005
(23)
July 2005
(20)
June 2005
(22)
May 2005
(21)
April 2005
(21)
March 2005
(22)
February 2005
(20)
January 2005
(21)
December 2004
(16)
November 2004
(20)
October 2004
(21)
September 2004
(21)
August 2004
(22)
April, 2008
TechNet Blogs
>
Hey, Scripting Guy! Blog
>
April, 2008
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Sort a Text File Based on a Specific Column in That File?
Posted
over 4 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I have a text file composed of many different lines; each line has a number of fields, with the fields separated from one another by a tab character. I need to sort this text file based on the value of one of these fields. How can...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Read a Text File and Extract All the Text Enclosed in Double Quote Marks?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I’m trying to write a script that can extract all the values found between a set of double quote marks. I know how to read the text file, and I know how to output any information that I find. However, I can’t figure out how to extract...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Use Windows PowerShell to Determine the Number of Lines in a Text File?
Posted
over 4 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I’m using Windows PowerShell to determine the record count (i.e., the number of lines) in a text file I just created. If the file has 2 lines, no problem; my script reports back a value of 2. If the file only has 1 line, however, I...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Install Fonts Using a Script?
Posted
over 4 years ago
by
ScriptingGuy1
8
Comments
Hey, Scripting Guy! Is there any way I can install a font using VBScript? -- RS Hey, RS. As a general rule, the Scripting Guy who writes this column steers clear of popular culture. (Actually, it’s not just a general rule; popular culture has a restraining...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Pass Command-Line Arguments to a Batch File Started From a Script?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I am trying to write a script that requests multiple pieces of information from a user; I then want to call a batch file, using each piece of information as a separate command-line argument. Unfortunately, though, I can’t get this...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Randomly Assign a Font to Characters in a Word Document?
Posted
over 4 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I’ve come up with a way to imitate handwriting in a document, but I need some help. Because real handwriting is characterized by variability, I had the idea of using four slightly-different fonts, taken from my actual handwriting,...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Schedule a Meeting Each Monday Through Friday For Two Weeks?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I schedule a meeting to occur every day, Monday through Friday, for two weeks? -- GB Hey, GB. As it turns out, the Scripting Guy who writes this column has not moved to some place where it doesn’t snow in April . That’s...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Monitor a Folder for the Creation of New Subfolders?
Posted
over 4 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! How can I monitor a folder for the creation of new subfolders? I know that new files can be detected (via WMI events) but the same syntax doesn't detect new folders. -- WS Hey, WS. Before we get started today can we ask you a quick...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Parse a Text File and Retrieve All the Information Contained Within Square Brackets?
Posted
over 4 years ago
by
ScriptingGuy1
2
Comments
Hey, Scripting Guy! I need to parse through a text file and extract the information contained within square brackets. So far, however, I haven’t been able to figure out how to do this; that’s because the data isn’t stored on separate lines in the file...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Store Arrays Within Another Array?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I need to read in data from a text file and store each line as a separate item in an array. However, the data in each line must also be stored as an array; in other words, I need an array made up of other arrays. I tried creating a...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Find Folders Whose Name Fits a Specified Pattern?
Posted
over 4 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I have a bunch of folders that had names like this: BAD_20080411; in other words, the characters BAD_ followed by the date. These folders can be on any drive on my computer. How can I write a script that will locate all these folders...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Use Windows PowerShell to Determine the Owner of a File?
Posted
over 4 years ago
by
ScriptingGuy1
4
Comments
Hey, Scripting Guy! Is it possible to determine the owner of a file using Windows PowerShell? -- GF Hey, GF. Well, today is April 15 th , which, in the US, can mean only one thing: it’s time to celebrate the birthday of Italian mathematician Pietro...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Import a Fixed-Width Data File into Microsoft Excel?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I import a fixed-width data file into Microsoft Excel? -- RS Hey, RS. This column is being written on a Friday morning, and so far it’s been a very weird morning at that. For one thing, it’s not raining and – if you look...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Use Windows PowerShell to Look at All the Microsoft Office Documents in a Folder?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I am trying to use Windows PowerShell to look at files on my computer; what I want to do is get back a history (that is, the last time a document was accessed) for all the Microsoft Office files in a folder and its subfolders. However...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Delete Duplicate Entries in a Tab-Delimited File?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I delete the duplicate entries in a tab-delimited file? -- ST Hey, ST. Before we start, is anyone out there familiar with the book Not Quite What I Was Planning: Six-Word Memoirs by Writers Famous and Obscure ? Not Quite...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Conditionally Add Lines to a Text File?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I need a script that can read a file and, based on the contents, insert some additional lines of text into that file. Can you help me with that? -- JS Hey, JS. We’re sure that most of you have heard by now that Microsoft has made...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Retrieve All the Values in a Registry Key?
Posted
over 4 years ago
by
ScriptingGuy1
2
Comments
Hey, Scripting Guy! Do you have a script that will enable me to enumerate all the values in a registry key? -- DG Hey, DG. You know, this past weekend the Scripting Guy who writes this column went out to buy doughnuts, a process that took much longer...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Check to See if Two Lines of Text are in a File and, If They Aren’t, Append Those Lines to the File?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! Let me first say that your stuff is great. Really helpful scripts mixed with great humor; you guys are pissa's (Australian slang for “funny”). I have a script that needs to open a file and check to see if two lines of text are in that...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Determine the Currency Symbol in Use on a Computer?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! Is there any way to determine the currency symbol that’s in use on a computer? -- IR Hey, IR. Before we get started today we wanted to mention that the Scripting Son picked up his second win in as many pitching starts the other...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Separate The Month From the Year in a Date String Like 122007?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I have a column of data in Microsoft Excel that is formatted as MYYYY (12008 = January 2008) and MMYYYY (122007 = December 2007). I need to split these values into month and year, but I can’t figure out how to do that. Any suggestions...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Sort Items Retrieved From a Microsoft Outlook Folder?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I’m trying to write a script that does something with all the email messages in my Outlook Inbox. However, I need to sort those messages by the date they were received, and I can’t figure out how to do that. Can you help? -- SL ...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Open an Alternate Home Page If the Default Home Page Isn’t Available?
Posted
over 4 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! In our company we hardcode everyone’s computer to use our intranet site as their Internet Explorer home page. All our users use laptop computers, however, and when they take the machines home with them and try to surf the Web they...
Page 1 of 1 (22 items)