Showing tag results for scripting techniques

Jan 18, 2005
Post comments count0
Post likes count0

How Can I Make a Read-Only File Writeable?

ScriptingGuy1

Hey, Scripting Guy! Is it possible to use a script to change the read-only attribute of a file?-- ZO Hey, ZO. Of course, you can do this; the FileSystemObject can do anything! Well, OK, it can’t do either of those things. And, no, it can’t do that, either. But it can change a read-only file to a writeable file, and with just a few lines of code....

Scripting Guy!scripting techniquesVBScript
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 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
Dec 13, 2004
Post comments count0
Post likes count0

How Can I Run a Script Under Alternate Credentials?

ScriptingGuy1

Hey, Scripting Guy! Is there a way for me to log on to a computer using a regular user account, but then run a script as a domain administrator?-- WW Hey, WW. In answer to your question, yes, both WMI and ADSI provide a way for you to run a script under alternate security credentials; that is, both allow you to specify a user name and a password...

Scripting Guy!scripting techniquesVBScript
Dec 1, 2004
Post comments count0
Post likes count0

Can I Combine Multiple Text Files Using a Script?

ScriptingGuy1

Hey, Scripting Guy! From the command prompt the command copy a.txt+b.txt ab.txt will take the contents of a.txt and the contents of b.txt and combine them into a new file named ab.txt. Can I do the same thing with a script?-- DL Hey, DL. In yesterday’s column we dealt with text files; more specifically, we talked about how you can use a script t...

Scripting Guy!scripting techniquesVBScript