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

Mar 28, 2008
0
0

Hey, Scripting Guy! How Can I Incrementally Rename Files Based on the File Creation Date?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I am trying to get my photos sorted in chronological order, even though – because they come from different cameras – they have different names. For example, one name type starts with DSC followed by a sequential number issued by one camera; another name type starts with IMG followed by a different sequential number. I want to ...

Scripting Guy!scripting techniquesVBScript
Mar 27, 2008
0
0

Hey, Scripting Guy! How Can I Change the Last-Accessed Date of a File to Match Its Last-Modified Date?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I change the last-accessed date for all the files in a folder? I want the last-accessed date to match the date and time that the file was last modified.-- GW Hey, GW. Say, did you realize that yesterday was Opening Day for Major League Baseball? If you didn’t, well, don’t feel bad; even the Scripting Guy who writes th...

Scripting Guy!Windows PowerShellscripting techniques
Feb 13, 2008
0
0

Hey, Scripting Guy! How Can I Convert Pacific Standard Time to My Local Time?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I really enjoyed the 2007 Winter Scripting Games, but one thing I noticed is that you listed the deadlines for all the events using Redmond time. I understand that you can’t list deadlines using the local time for every time zone in the world; however, maybe you could show us how to write a script that could convert Redmond ti...

Scripting Guy!scripting techniquesVBScript
Dec 12, 2007
0
0

Hey, Scripting Guy! How Can I Delete Files That Are a Specified Number of Hours Old?

ScriptingGuy1
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 are predicting that, by the year 2050, humans and...

Scripting Guy!scripting techniquesVBScript
Nov 27, 2007
0
0

Hey, Scripting Guy! How Can I Retrieve Time Zone Information for a Computer?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I retrieve time zone information for a computer?-- AL Hey, AL. You know, over the Thanksgiving Day weekend the Scripting Guy who writes this column took some time to think about his job, and to think of ways in which he could do that job even better. (Note to the Scripting Editor: Believe it or not, the Scripting Guy ...

Scripting Guy!VBScriptoperating system