Sign in
TechNet Blogs
Technet Blog Images
More ...
Browse by Tags
TechNet Blogs
>
Hey, Scripting Guy! Blog
>
All Tags
>
associators of
Server & Tools Blogs
>
Server & Management Blogs
>
Hey, Scripting Guy! Blog
All About Windows Server
Windows Server
Windows Server Essentials Blog
Building Clouds
Partner & Customer Solutions
Server & Cloud
Ask The
Performance Team
Ask Premier Field Engineering
Ask the Core Team
Cloud & Datacenter Management
The System Center Team Blog
System Center Virtual Machine Manager
System Center Service Manager
System Center Operations Manager
System Center Data Protection Manager
System Center Orchestrator
Partner & Customer Solutions
Client Management
System Center Configuration Manager
System Center Service Manager
MDOP
Malware Protection Center
Windows Intune
SUS
Partner and Customer Solutions
Virtualization, VDI & Remote Desktop
Virtualization Team Blog
Ben Armstrong’s Virtualization Blog
Jose Barreto Blog on Hyper-V
Partner & Customer Solutions
Remote Desktop Services
Windows Multipoint Server
Ask the Core Team on Hyper-V
File & Storage & High Availability
File & Storage
Jose Barreto
Partner & Customer Solutions
Ask the Core Team on Failover Cluster
Clustering & High Availability
Windows Server Management
PowerShell
Hey Scripting Guy (PowerShell)
Server Manager
Group Policy
Networking
Identity & Access
Ask Directory Services
Active Directory
Microsoft Leadership
Brad Anderson - In the Cloud
Hey, Scripting Guy! Blog
Learn about Windows PowerShell
Live Now on Server & Tools Blogs
Subscribe
Comments
Contact
Menu
Blog Home
Atom
Translate this page
Powered by
Microsoft® Translator
Twitter Feed
Recent Posts
PowerShell Hash Tables that Contain Keywords...hmm...
Posted
7 hours ago
by
The Scripting Guys
1
Comments
PowerTip: Create an XML Representation of a Registry Key with PowerShell
Posted
19 hours ago
by
The Scripting Guys
1
Comments
Use PowerShell to Copy Only Folders that Contain Files
Posted
1 day ago
by
The Scripting Guys
3
Comments
PowerTip: Toggle Outline View in the Windows PowerShell ISE
Posted
1 day ago
by
The Scripting Guys
0
Comments
Tags
arrays hash tables and dictionary objects
dates and times
desktop management
files
FileSystemObject
folders
Microsoft Word
Office
operating system
registry
Scripting Guy!
scripting techniques
special folders
storage
text files
VBScript
VBScript migration
Windows PowerShell
WMI
Word.Application
Related Resources
Script Center Home
Scripting Library
Learn to Script
Script Repository
Scripting Forum
2012 Scripting Games
Archives
Archives
May 2013
(44)
April 2013
(61)
March 2013
(62)
February 2013
(56)
January 2013
(62)
December 2012
(62)
November 2012
(68)
October 2012
(62)
September 2012
(62)
August 2012
(63)
July 2012
(32)
June 2012
(39)
May 2012
(33)
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)
More
▼
Less
▲
Tagged Content List
Blog Post:
Hey, Scripting Guy! How Do I Migrate My VBScript WMI Queries to Windows PowerShell?
ScriptingGuy1
We are pretty well annoyed at you guys. We spent all this time and energy creating all these VBScripts over the last nine years. We have several hundred VBScripts that we use in production, and with uncertain economic times, you are now telling me I have to rewrite all these scripts in Windows PowerShell...
on
4 Mar 2009
Blog Post:
Hey, Scripting Guy! How Can I Delete Files That Are a Specified Number of Hours Old?
ScriptingGuy1
Hey, Scripting Guy! I’ve seen scripts that let you delete all the files in a folder that are X number of days old. I have a different problem: I’d like to delete files that are X number of hours, or even X number of minutes , old. How can I do that? -- DF Hey, DF. Did you see where some researchers...
on
12 Dec 2007
Blog Post:
How Can I Identify the Last File in a Sequential List of Files?
ScriptingGuy1
Hey, Scripting Guy! I have a folder which contains thousands of files, all numbered sequentially. How can I tell which file is the last file in the list? -- AC Hey, AC. You know, one of the fun things about being a Scripting Guy is that we get to spend a lot of time shattering myths. For example,...
on
12 Sep 2006
Blog Post:
How Can I Get a Total Page Count for All the Word Documents in a Folder?
ScriptingGuy1
Hey, Scripting Guy! How can I get a total page count for all the Word documents in a folder? -- RA Hey, RA. You’ll have to forgive the Scripting Guy who writes this column if he seems a little tired this morning. Yesterday was the first day of school in the Lake Washington School District and, as...
on
7 Sep 2006
Blog Post:
How Can I Remove Blank Spaces From File Names?
ScriptingGuy1
Hey, Scripting Guy! I have a folder with a bunch of files in it, files with names like Doc 1.pdf, Doc 2.pdf, and Doc 3.pdf. How do I remove the blank spaces from all those file names? -- JRP Hey, JRP. You know, today’s column represents a landmark in Hey, Scripting Guy! history. Why’s that? Because...
on
16 Aug 2006
Blog Post:
How Can I Incrementally Rename All the Files in a Folder?
ScriptingGuy1
Hey, Scripting Guy! I have an unknown number of files in a folder. I need to rename them using this format: ABC_f x .inv, where x is an incremental number. How can I do that? -- RN Hey, RN. You know, one of the Scripting Guys once had an idea for a very different kind of restaurant. Would you walk...
on
31 Jul 2006
Blog Post:
How Can I Get the Names of 10 Randomly-Selected Files in a Folder?
ScriptingGuy1
Hey, Scripting Guy! How can I get the names of 10 randomly-selected files in a folder? I need to do that so I can test and verify our backup and restore policies. -- CS Hey, CS. You know, if you’re interested in things that are random, haphazard, arbitrary, or downright chaotic, well, you came to...
on
17 Jul 2006
Blog Post:
How Can I Get a List of All the .dll Files in a Folder, Along with Their Version Numbers?
ScriptingGuy1
Hey, Scripting Guy! How can I get a list of all the .dll files in a folder, along with their version numbers? -- DD Hey, DD. You know, when we sit down to write this column we usually try to start off with an amusing and at least semi-relevant anecdote. In this case, that would mean a cute story about...
on
22 May 2006
Blog Post:
How Can I Use a Script to Automatically Queue Up Files That I Want to Burn to a CD?
ScriptingGuy1
Hey, Scripting Guy! In Windows XP, how can I use a script to automatically queue up files that I want to burn to a CD? -- BD Hey, BD. Well, unfortunately, we have some bad news for you: there’s currently no way to burn a CD using a script. You see, the problem is that - oh, wait a second: you just...
on
2 May 2006
Blog Post:
How Can I Rename Files Like _JKG1234.jpg to 272_DSC_1234.jpg?
ScriptingGuy1
Hey, Scripting Guy! How can I rename files like _JKG1234.jpg to 272_DSC_1234.jpg? -- NA Hey, NA. You know, NA, we feel sorry for you. Why? Well, on the one hand you’re unbelievably lucky. After all, the Scripting Guys never write scripts that they actually use, yet you somehow managed to hit upon...
on
28 Nov 2005
Blog Post:
How Can I Insert Multiple Files Into a Word Document, Putting a Page Break Between Each File?
ScriptingGuy1
Hey, Scripting Guy! On May 3 rd you showed us how to merge multiple files in Microsoft Word. I’d like to do that, but put a page break between each file. -- CE Hey, CE. You know, when we read your email our first thought was this: no way did we show people how to merge multiple files back on May 3...
on
8 Nov 2005
Blog Post:
How Can I Verify That a Folder Has Files in It and, If So, Delete Those Files?
ScriptingGuy1
Hey, Scripting Guy! How can I verify that a certain folder (C:\TestLog) has files in it and, if so, delete all those files? -- DC Hey, DC. Before we begin we should point out that - when using WMI - it doesn’t matter whether or not a folder has any files in it: you can still tell WMI to delete all...
on
20 Oct 2005
Blog Post:
How Can I Add the Last Lines from a Group of Text Files to a Word Document?
ScriptingGuy1
Hey, Scripting Guy! How can I take the last line in a group of text files and paste that information into a Word document? -- JV Hey, JV. You know, one thing we try to do in this column is focus on practical system administration tasks. We’ll deviate from that focus every now and then, but for the...
on
18 Oct 2005
Blog Post:
How Can I Unhide All the Files in a Folder?
ScriptingGuy1
Hey, Scripting Guy! How can I run a script to unhide all the files in a folder? -- GA Hey, GA. You know, when one of the Scripting Guys was a bit younger he and the other kids in his neighborhood spent countless hours playing variations on hide-and-seek; in fact, this Scripting Guy still has vivid...
on
23 Aug 2005
Page 1 of 1 (14 items)