Showing tag results for folders

Apr 10, 2006
Post comments count0
Post likes count0

How Can I List All the Files on a User’s Desktop?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I list all the files on a user’s desktop?-- BT Hey, BT. So you thought you could fool the Scripting Guys, did you? Well, you did, at least for awhile. As is so often the case with the Scripting Guys we took one look at your question and thought, “Let’s answer this one; this one is easy!” Three tries - and another fals...

Scripting Guy!VBScriptstorage
Mar 15, 2006
Post comments count0
Post likes count0

How Can I Delete a Folder That Has an Apostrophe in the Name?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I delete a folder that has an apostrophe in the name?-- JH Hey, JH. Ah, yes, the apostrophe: every script writer’s arch-nemesis. The apostrophe seems like such a simple little character, but don’t let its appearance fool you: the apostrophe (or the single quote) is probably the most deadly character to be found on the...

Scripting Guy!scripting techniquesVBScript
Jan 11, 2006
Post comments count0
Post likes count0

How Can I Take Ownership of a File or Folder By Using a Script?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I take ownership of a file or folder using a script?-- RV Hey, RV. Interesting question. In the past, the Scripting Guys have tried to take ownership of a Porsche 911, beachfront property in Hawaii, and the New York Yankees; all of those efforts failed. Considering our track record, we weren’t sure what would happen i...

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
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
Apr 5, 2005
Post comments count0
Post likes count0

How Can I Delete a Folder and All Its Subfolders?

ScriptingGuy1
ScriptingGuy1

Hey Scripting Guy! How can I delete a folder and all its subfolders?-- FB Hey, FB. You know, a lot of people think the Scripting Guys know everything there is to know about scripting. Let’s put it this way: we wish. In fact, it’s only when we begin to think that we do know something about scripting that we get ourselves into trouble. Take (pleas...

Scripting Guy!VBScriptstorage