Search this forum for FileSystemObject or FSO. That will help do it.
Hope this helps
HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin
Get the most out of Tek-Tips, read FAQ222-2244 before posting.
Hardly an example of strong typing. However, it also looks superfluous, since none of the values are being used anywhere. I suggest that this line be removed.
That's true...I got it from a website a couple of years ago and pasted it in verbatum. I never really paid attention to it until the "yuck" comment. I realize it's not a good coding standard.
Also, I know VB 6 defaults to varient for the first two variables. VB .Net doesn't do that so where in VB 6 this:
Dim X, Y, Z as long
Would mean only Z is long. In VB .Net all three would be long.
Well, not if it's got:
Dim FSO As FileSystemObject
What it really looks like is a horrible mishmash, cut-and-pasted together. TysonLPrice, I suggest you don't get any more code from the site you lifted this from ...
And further to my 'yuck', it doesn't need both of these lines either:
Set FSO = New FileSystemObject
Set FSO = CreateObject("Scripting.FileSystemObject")
Also, the examples in the posted link do mention that it can be used alternatively
>I suggest you don't get any more code from the site you lifted this from ...
Just to rule out a possible misunderstanding from other readers: it doesn't look like it came the from the page in the link posted by TysonLPrice, so they must be referring to a different page or site.
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.