Category Archives: vbscript

Multi For, part2 : Dynamic count of nested loops without recursion?

‘———————————————————————————————– Sub multi_for(IterationCounts) Dim u: u = 0 Dim v: v = UBound(IterationCounts) – LBound(IterationCounts) + 1 – 1 Dim radix() Dim num() ReDim radix(v + 1) ReDim num(v + 1) ‘— +1 = ready flag Dim Ix: For Ix … Continue reading

Posted in vbscript | Leave a comment

Multi For : Dynamic count of nested loops without recursion?

Dim u : Dim v : Dim m u=0 : v=2 : m=v-u+1 ‘D = 1 digit permutation (0 nested loop) for ix = u to v msgbox ix mod m next Results: [0] [1] [2] ‘======================= ‘D = 2 … Continue reading

Posted in vbscript | Leave a comment

Emergency temp folder purge

Put this code into an .vbs file and double click onThis program ignores the locked files   sub TryDestroy(Item)    on error resume next       Call Item.Delete(True)     end sub   Dim Item     Dim FolderPath   Dim TempFolderMagic       TempFolderMagic … Continue reading

Posted in vbscript | Leave a comment