Hmm... I've only seen FileSystemObject used for working with folders, so I'm pretty sure we'll have to stick with it for this purpose.
________________________________________________________
Set objfso = CreateObject("Scripting.FileSystemObject")
Set oFolder =...
Dude, what are you trying to accomplish? Are you looking for a particular file or folder on the system - a recursive search?
Any file/folder work is done using 'CreateObject("Scripting.FileSystemObject")'. Give me some more details on your goal and I can help you out.
When you're trying to run a program where there are spaces in the path, you need to include the command to be run in quotes. There are two ways:
..using three quotes where each single quote would go, like this-
WshShell.Run """C:\Test Company\vb6program.exe""", 1...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.