Showing tag results for folders

Feb 1, 2005
Post comments count0
Post likes count0

How Can I Change the Working Folder of a Script?

ScriptingGuy1
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 14, 2005
Post comments count0
Post likes count0

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

ScriptingGuy1
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
Dec 17, 2004
Post comments count0
Post likes count0

How Can I Connect to a Folder When There’s an Apostrophe in the Folder Name?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I’m using the WMI class Win32_Directory to get information about folders on a computer. It works great, except when there’s an apostrophe in the folder name; then, it doesn’t work at all. How can I use WMI to connect to folders that have apostrophes in their names?-- JO Hey, JO. Ah, the apostrophe (also known as the single qu...

Scripting Guy!VBScriptstorage
Nov 18, 2004
Post comments count0
Post likes count0

Can I Use a Script to Determine the Size of a Folder on a Remote Computer?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Can I use a script to determine the size of a folder on a remote computer?-- SS Hey, SS. Boy, you’d think you’d be able to do that, wouldn’t you? Especially if you’ve glanced through the WMI class Win32_Directory and noticed the property FileSize. Based on that, you might think, “Well, obviously I could just write a WMI scrip...

Scripting Guy!VBScriptstorage
Oct 20, 2004
Post comments count0
Post likes count0

How Can I Get a List of All the Files in a Folder and Its Subfolders?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I use a script to show me all the files in a folder? And then how can I modify that script so it shows me all the files in any subfolders of that folder?-- CS Hey, CS. Yesterday we showed everyone a script that changed all the files in a folder from read-only to read-write. We also promised that, in today’s column, we...

Scripting Guy!VBScriptstorage