Showing results for folders - Scripting Blog [archived]

Jul 17, 2006
Post comments count0
Post likes count0

How Can I Get the Names of 10 Randomly-Selected Files in a Folder?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I get the names of 10 randomly-selected files in a folder? I need to do that so I can test and verify our backup and restore policies.-- CS Hey, CS. You know, if you’re interested in things that are random, haphazard, arbitrary, or downright chaotic, well, you came to the right place. For example, any time we Scriptin...

Scripting Guy!scripting techniquesVBScript
Jul 10, 2006
Post comments count0
Post likes count0

How Can I List All the Empty Folders on a Specified Drive?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I list all the empty folders (that is, folders with a size of 0 bytes) on a specified drive?-- DD Hey, DD. You know, physicist Edwin Schrodinger once proposed a thought experiment in which a cat is placed in a sealed box, along with a canister of poison gas. The experiment is designed in such a way that there is exact...

Scripting Guy!VBScriptstorage
Jul 6, 2006
Post comments count0
Post likes count0

How Can I Create a Compressed Folder and Add Files to It?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I create a compressed folder and add files to it?-- SL Hey, SL. You know, one thing that the Scripting Guys have learned over the years is that when people ask a question they often expect to get an answer to a different question. The classic example, of course, is when the Scripting Spouse says, “Do these jeans make ...

Scripting Guy!VBScriptstorage
May 26, 2006
Post comments count0
Post likes count0

How Can I Search for Folders That Have a Dot in Their Name?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I search for folders that have a dot in their name? For example, a folder like Administrator.name or Folder.old?-- DU Hey, DU. You know, if your intention was to trick the Scripting Guys (not that tricking the Scripting Guys would be anything to brag about), well, you almost succeeded. That’s because, upon first readi...

Scripting Guy!VBScriptstorage
May 2, 2006
Post comments count0
Post likes count0

How Can I Use a Script to Automatically Queue Up Files That I Want to Burn to a CD?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! In Windows XP, how can I use a script to automatically queue up files that I want to burn to a CD?-- BD Hey, BD. Well, unfortunately, we have some bad news for you: there’s currently no way to burn a CD using a script. You see, the problem is that - oh, wait a second: you just want to queue up the files that will be burned to...

Scripting Guy!VBScriptoperating system