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

Nov 22, 2007
0
0

Hey, Scripting Guy! How Can I Tell If a Time Occurred in the Morning or the Evening?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Given a time of day, is there an easy way to tell whether that’s a morning time or an evening time?-- HG Hey, HG. Can you feel the excitement in the year, that sense of anticipation, the crackling energy and the flow of adrenalin? That can only mean one thing: the annual Turducken Bowl is upon us. On the off-chance that some ...

Scripting Guy!VBScriptoperating system
Nov 17, 2007
0
0

Hey, Scripting Guy! How Can I Set the Date and Time on a Computer?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I set the date and time on a computer?-- KM Hey, KM. Well, it’s true: today is the last day of TechEd IT Forum. That also means that, for the Scripting Guys, the party is over: tomorrow morning they hop on a plane and head back for home. And, needless to say, back to the real world: jobs, car payments, mortgages, fami...

Scripting Guy!VBScriptoperating system
Feb 23, 2007
0
0

How Can I Tell If a Script is Running on the First or Second Monday of a Month?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! We have a logon script that needs to perform certain tasks only on the first and second Mondays of the month. How can I determine whether the script is running on the first or second Monday in a month?-- WA Hey, WA. You know, a few months ago the Scripting Guy who writes this column noticed that his watch had stopped; consequ...

Scripting Guy!scripting techniquesVBScript
Feb 14, 2007
0
0

How Can I Change the Last Modified Timestamp for All the Files in a Folder?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I change the last modified timestamp for all the files in a folder? I’d like the first file to have a specified timestamp, then each subsequent file to have a timestamp one minute later than the previous file.-- AF Hey, AF; glad to see that you’re taking a break from the 2007 Winter Scripting Games. Is that because we...

Scripting Guy!VBScriptstorage
Jan 23, 2007
0
0

Hey, Scripting Guy! How Can I Create A New Folder Using a Name Based on the Current Date?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I create a new folder each night, using a folder name based on the current date?-- DM Hey, DM. In answer to your unasked question, no, the Scripting Guy who writes this column did not get selected to sit on a jury; as a result, he’s back to work, and back to writing this column. And, no, we don’t know why ...

Scripting Guy!scripting techniquesVBScript