Showing tag results for Scripting Guy!

Jan 14, 2005
Post comments count0
Post likes count0

How Can I Tell if a Folder Has Any Files with a Specific File Extension?

ScriptingGuy1

Hey, Scripting Guy! How can I verify whether or not any files with a specific file extension exist in a folder?-- GM Hey, GM. This is actually a pretty easy thing to do. All we have to do is write a WMI query that includes the path of the folder we want to check as well as the file extension we’re checking for. For example, this script retrieves...

Scripting Guy!scripting techniquesVBScript
Jan 13, 2005
Post comments count0
Post likes count0

How Can I Map a Printer, But Only If the User Doesn’t Have a Local Printer?

ScriptingGuy1

Hey, Scripting Guy! I’d like to have a logon script that maps a network printer for each user unless that user already has a local printer. If they have a local printer, I don’t want to add the network printer. Is that possible?-- AG Hey, AG. Not only is that possible, but it’s actually pretty easy, especially if you’re running Windows XP or Win...

Scripting Guy!VBScriptprinting
Jan 12, 2005
Post comments count0
Post likes count0

How Can I Access a Type Library From Within a Script?

ScriptingGuy1

Hey, Scripting Guy! How can I access a type library from within a script?-- XA Hey, XA. For those of you unfamiliar with the term, a type library is a file or a component that contains type information for a COM object; type information describes the object and the things you can do with it. Among the information found in a type library are the ...

Scripting Guy!scripting techniquesVBScript
Jan 11, 2005
Post comments count0
Post likes count0

How Can I Put the User Name into the Footer of a Microsoft Word Document?

ScriptingGuy1

Hey, Scripting Guy! How can I put the user name into the footer of a Microsoft Word document?-- RR Hey, RR. That’s an interesting question, and probably the first how-do-I-put-the-user-name-in-the-footer-of-a-Word-document question we’ve ever received. (No, really!) But what the heck; let’s see if we can find an answer for you. Besides, this giv...

Scripting Guy!VBScriptOffice
Jan 10, 2005
Post comments count0
Post likes count0

How Can I Determine Which Version of Word is Installed on a Computer?

ScriptingGuy1

Hey, Scripting Guy! How can I determine which version of Word is installed on a computer?-- RR Hey, RR. Turns out that this is a trickier question than you might expect. That’s because WMI does only a so-so job of retrieving information about the software installed on a computer. In theory, you can use a script like this one to get back version ...

Scripting Guy!VBScriptversion information