Showing tag results for VBScript

Mar 28, 2008
Post comments count0
Post likes count0

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

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
Post comments count0
Post likes count0

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

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
Mar 25, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Add a Hotkey to an HTA Button?

ScriptingGuy1

Hey, Scripting Guy! How can I add a hotkey to a button in my HTA?-- TM Hey, TM. As usual, the Monday column is being written on Friday; however, the Scripting Guy who writes this column is having far more trouble getting things done than he usually does. That’s because today is day 2 of the NCAA basketball tournament (“March Madness”) and he’s t...

Scripting Guy!scripting techniquesVBScript
Mar 22, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Use Data Read From a Text File as Command-Line Parameters For a Batch File?

ScriptingGuy1

Hey, Scripting Guy! I'm trying to automate a tedious license server task. To do this, I need to loop through a text file line-by-line, grab out a user name, asset number, and license ID, and then pass those values to a batch file. How can I do all that?-- DM Hey, DM. Before we get started today is Friday, March 21, 2008 isn’t it? We wanted to do...

Scripting Guy!scripting techniquesVBScript
Mar 21, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Use Both AND and OR Operators in a Single WMI Query?

ScriptingGuy1

Hey, Scripting Guy! I’ve looked through the entire Script Center but I can’t find an example of what I need to do: find all the .DOC files on drives C and D, but using a single WMI query. In other words, I want to write a WMI query similar to this: Where ( Drive = 'C:' or 'D:' ) and ( Extension = 'doc' ); unfortunately, though, I can’t figure out...

Scripting Guy!scripting techniquesVBScript