Showing archive results for 2005

Feb 2, 2005
Post comments count0
Post likes count0

How Can I Get a List of All My Windows Server 2003 Computers?

ScriptingGuy1

Hey, Scripting Guy! How can I gather the names of all the computers in my domain that are running Windows Server 2003?-- AS Hey, AS. When we choose questions to answer for this column, we try to take questions from different areas of scripting. That does two things for us: it keeps us from being the answers-only-questions-about-say-scripting-Act...

Scripting Guy!VBScriptActive Directory
Feb 1, 2005
Post comments count0
Post likes count0

How Can I Change the Working Folder of a Script?

ScriptingGuy1

Hey, Scripting Guy! My script needs to have the same working folder as the application that the script starts. How can I change the working folder of a script?-- JM Hey, JM. You can change the current (or working) folder of a script simply by setting the value of the Wscript Shell object’s CurrentDirectory property. (Note. The CurrentDirectory p...

Scripting Guy!VBScriptstorage
Jan 31, 2005
Post comments count0
Post likes count0

How Can I Make Changes to and Then Re-Save an Existing Excel Spreadsheet?

ScriptingGuy1

Hey, Scripting Guy! How can I open an existing Excel spreadsheet, add some additional information to that spreadsheet, and then save my changes? Every time I call the SaveAs method a dialog box pops up asking me if I want to save my changes.-- RW Hey, RW. Generally speaking, you can avoid that dialog box by using the Save method rather than the ...

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

How Can I Show Users a Dialog Box for Selecting Files?

ScriptingGuy1

Hey, Scripting Guy! Is there any way I can use a script to present a user with a dialog box and let him or her select a file?-- BF Hey, BF. If you’re using Windows 2000, we don’t know of a way to do this, at least not a way that’s built into the operating system. That’s not the case with Windows XP, however. On Windows XP, you can use the UserAc...

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

How Can I Determine the System Time on a Computer?

ScriptingGuy1

Hey, Scripting Guy! Is there any way to retrieve the system time as configured on a remote computer?-- JJ Hey, JJ. There are at least two ways to do this, both using WMI. If you’re running Windows XP or Windows Server 2003, you can use the WMI class Win32_LocalTime. As you can see, that makes it pretty easy to get the system time: you simply con...

Scripting Guy!scripting techniquesVBScript