Showing results for dates and times - Scripting Blog [archived]

Sep 22, 2008
0
0

Hey, Scripting Guy! Australian Dispatch #1: How Does a Scripting Guy Pack for a Trip?

ScriptingGuy1
ScriptingGuy1

Three o'clock in the morning is early for anyone, even a scripting guy. Yet there was this persistent annoying ringing sound that kept trying to interrupt my short-lived sleep. At last I was able to put a name to the intrusion. Alarm clock. It is time to get up. Today I begin the process of going to Australia. The flight goes from Charlotte, Nor...

Scripting Guy!Windows PowerShellscripting techniques
Aug 12, 2008
0
0

Hey, Scripting Guy! When Will We Land?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I am writing to you offline because I am stuck in an airplane somewhere over the Atlantic Ocean. It seems like I have been flying for two weeks, and I am really getting tired of looking at the bald spot on the head in front of me. Do you know when we will land?-- DS Hi DS, I am not sure the pilots themselves really know when...

Scripting Guy!Windows PowerShellscripting techniques
May 28, 2008
0
0

Hey, Scripting Guy! How Can I Report Back File Dates Using Labels Like Today, Yesterday, and Last Week?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! In Microsoft Outlook if you sort and group your email by date, you don’t just get groupings that show the date; instead, you get groupings like Today, Yesterday, Last Week, etc. I’d like to do something similar; I’d like to look at the last-modified date for all the files in a folder, then report back that date as one of the f...

Scripting Guy!scripting techniquesVBScript
May 15, 2008
0
0

Hey, Scripting Guy! How Can I Search a Text File for Activities That Took Place on a Specified Date?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I’m trying to write a script that can go through a log file and determine the number of users who logged off on a particular day. Can you help me?-- TM Hey, TM. You know, when you work at Microsoft people think you probably come to work in your pajamas, ride a unicycle through the hallways, and do all those other weird and wa...

Scripting Guy!scripting techniquesVBScript
May 9, 2008
0
0

How Can I Use Windows PowerShell to Report Back the Name and Creation Date for Files Containing a Specified String Value?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Using Windows PowerShell, how can I search for a string value in all the files in a folder full of text files, then report back the file name and creation date for each file where that string value was found? Oh, and I’d like to have these files sorted by date, too.-- JS Hey, JS. You know, the Scripting Guy who writes this co...

Scripting Guy!Windows PowerShellscripting techniques