Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FSO Methods Nurfed by Microsoft ? ?

Status
Not open for further replies.

czbear

IS-IT--Management
Jul 3, 2003
11
US
Had a line running for better than a year. It loops though the files collection and sets a counter to the number of files it finds:

Set fsf = fs.GetFolder(thstring)
For each file in fsf.files
fcount = fcount + 1
next

Then I come into work today and find it doesn't work. Noone changed the code, no conflicting variables introduced.

I assigned this property instead and it works again
fcount = fsf.files.Count

Anyone else see this problem? MS Security Fix?, Server Update ? Does the collection still work correctly ?
(not being able to loop through that will be a bummer for us all).
Interesting stuff.
 
what does the error say?

Known is handfull, Unknown is worldfull
 
Its not an error per se, just functionality that no longer works.

Lets say there are 30 files in the directory. The for next would loop 3 times and fcount would end up with a value of 30. Now it ends up with a value of 1 and the code didn't change. Some different behavior in VBScript I suppose.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top