Showing archive results for 2008

Feb 14, 2008
Post comments count0
Post likes count0

How Can I Run a Subroutine in an HTA After a Set Amount of Time?

ScriptingGuy1

Hey, Scripting Guy! I have an HTA that asks users to either click a button to install some software or click Cancel. Sometimes, though, users don’t do either one; they just let the HTA sit there. Is there any way to show the HTA for a set amount of time and then, if nothing happens, have it go ahead and install the software?-- TN Hey, TN. Well, ...

Scripting Guy!scripting techniquesVBScript
Feb 13, 2008
Post comments count0
Post likes count0

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

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
Feb 12, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Use Windows PowerShell to Sort a CSV File?

ScriptingGuy1

Hey, Scripting Guy! have a comma-separated values file that includes several different fields. I’d like to be able to read this file from Windows PowerShell and then sort the information on one (or maybe more) of these fields. However, I can’t seem to get this to work. Any suggestions?-- DW Hey, DW. Before we answer your question we have an obse...

Scripting Guy!Windows PowerShellscripting techniques
Feb 11, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Remove Extraneous Spaces From Fields in a Text File?

ScriptingGuy1

Hey, Scripting Guy! I have a text file in which each field has a bunch of extra spaces tacked on to the end. How can I remove all those extra spaces?-- GC Hey, GC. Well, today is Monday, February 11th, which can mean only one thing: the 2008 Winter Scripting Games are just a few days away. But we didn’t need to tell you that, did we? After all, ...

Scripting Guy!scripting techniquesVBScript
Feb 8, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Select Text in a HTA and Then Append That Text to a File?

ScriptingGuy1

Hey, Scripting Guy! I read your column about the HTA that could load and then display all the files in a folder. That was pretty useful, but I had an idea to make it even better. When looking at a log file I often see portions of the log that I’d like to copy and save to a separate text file. Is there any way to highlight text in an HTA and...

Scripting Guy!scripting techniquesVBScript