>>#794625 MOD 256# will return 1, #794626 MOD 256# will return 2, etc. That will give you your folder number. If the result is 0, then the folder would be 256.
Then use ((property - 1) MOD 256) + 1, this should go from 1 to 256 Ex: <CFLOOP INDEX="n" FROM="794620" TO="794630"> <CFOUTPUT>n = #n#, ((n - 1) MOD 256) + 1 = #((n - 1) MOD 256) + 1#<BR></CFOUTPUT> </CFLOOP> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351151 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm