Showing results for storage - Scripting Blog [archived]

Mar 31, 2005
0
0

How Can I Determine the Size of the My Documents Folder?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I determine the size of the My Documents folder?-- SC Hey, SC. The My Document folder is actually just another folder on the hard disk, one with a path similar to this: C:\Documents and Settings\kenmyer\My Documents. Of course, the actual path will vary depending on the name of the logged-on user; in addition, the My ...

Scripting Guy!VBScriptstorage
Mar 17, 2005
0
0

How Can I Move Files Based on Their File Extension?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I have a folder with a bunch of files in it. I need to move all those files; the only problem is that the files need to be moved to different folders depending on their file extensions. For example, I want all the .log files to go here, all the .bak files to go there, etc. How can I do that using a script?-- SH Hey, SH. There...

Scripting Guy!VBScriptstorage
Mar 7, 2005
0
0

How Can I Tell If a File Exists on a CD or DVD Drive?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I tell whether a file exists on any CD or DVD drive connected to a computer?-- GH Hey, GH. Well, one way to do this would be to search the entire file system - including any mapped network drives - and check to see if a file (let’s call it Budget.xls) can be found anywhere. Assuming you find such a file, you can then ...

Scripting Guy!VBScriptstorage
Mar 2, 2005
0
0

How Can I Create a Folder on the Start Menu?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I create a folder on the Start menu? I want the folder to be named the same as the %username% environment variable.-- SB Hey, SB. As we are wont to do, we’re going to break this question down into subtasks. We’ll explain how to do each of these subtasks, then at the end put the pieces together to create a single scrip...

Scripting Guy!VBScriptstorage
Feb 28, 2005
0
0

How Can I Determine if a Users’ Folder Exists on a Computer?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I determine if the C:\Documents and Settings\%username%\Application Data\Microsoft\Templates folder exists on a computer?-- JM Hey, JM. The FileSystemObject includes a FolderExists method that makes it very easy to check for the existence of a folder. Just pass FolderExists the complete path to the folder and you’ll q...

Scripting Guy!VBScriptstorage