Showing tag results for storage

Oct 27, 2005
Post comments count0
Post likes count0

How Can I Determine Which Drives are Mapped to Network Shares?

ScriptingGuy1

Hey, Scripting Guy! How can I determine which drives on a computer are mapped to network shares?-- CP Hey, CP. OK, you better sit down, because what we’re about to say will shock you: if you want to determine which drives on a computer are mapped to network shares, don’t use the Win32_MappedLogicalDisk class. Oh, look: you spilled coffee on ever...

Scripting Guy!VBScriptstorage
Oct 25, 2005
Post comments count0
Post likes count0

How Can I Delete a Backup File Created on the Previous Day?

ScriptingGuy1

Hey, Scripting Guy! Each day we have a program that creates a file with a name similar to this: backup_20050607.bak. How can I delete the previous day’s file?-- JC Hey, JC. Hmmm, a script that goes out and automatically deletes whatever happened the day before. Boy, could we have used a script like that a few weeks ago! Yes, we know. But that’s ...

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

How Can I Verify That a Folder Has Files in It and, If So, Delete Those Files?

ScriptingGuy1

Hey, Scripting Guy! How can I verify that a certain folder (C:\TestLog) has files in it and, if so, delete all those files?-- DC Hey, DC. Before we begin we should point out that - when using WMI - it doesn’t matter whether or not a folder has any files in it: you can still tell WMI to delete all the files in that folder. If no such files exist ...

Scripting Guy!VBScriptstorage
Oct 11, 2005
Post comments count0
Post likes count0

How Can I Determine Which Users are Using the Most Disk Space on a Drive?

ScriptingGuy1

Hey, Scripting Guy! How can I determine which users are using the most disk space on a drive?-- PW Hey, PW. Interesting question. In theory, you could probably do this by retrieving a collection of all the files on a drive, checking the owner, determining the file size, and then keeping a running tally of the amount of disk space charged to each...

Scripting Guy!VBScriptstorage
Oct 3, 2005
Post comments count0
Post likes count0

How Can I List All the Files in a Folder, Ordered By Creation Date?

ScriptingGuy1

Hey, Scripting Guy! How can I list all the files in a folder, ordered by creation date?-- CL Hey, CL. You know, if we were ambitious and hard-working, we’d sit down and write you a script that uses WMI to return all the files in a folder. That script would grab information about all those files and store that data in a disconnected recordset. We...

Scripting Guy!VBScriptstorage