AutoHotkey Community

It is currently May 27th, 2012, 10:47 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: FileCheck()
PostPosted: March 11th, 2008, 2:20 am 
Offline

Joined: May 10th, 2007, 2:52 am
Posts: 194
Location: China/ Canada
Code:
FileSelectFolder, FolderName
If FolderName =
 return
TimeCheck := A_TickCount
FileCheck(FolderName, ".*")
TimeCheck := A_TickCount - TimeCheck
Msg := "<" TimeCheck / 1000 ">`n" FolderName "   " FileCheck1
Loop
 If 1_%A_Index% <>
  Msg .= "`n" 1_%A_Index% "   " SubStr(1_%A_Index%Check, InStr(1_%A_Index%Check, "\", 0, 0) + 1)
 Else
  break
Gui, Add, Edit, R30, %Msg%
Gui, Show,, FileCheck() Test
return
Code:
FileCheck(FolderName, FolderCheck = ".*", ListNum = 1)
{
 global
; administrator mode recommended
 FileCheck%ListNum% := 0
 Loop %FolderName%\*.*, 1, 0
 {
  IfInString, A_LoopFileAttrib, D
  {
   If RegExMatch(A_LoopFileLongPath, FolderCheck)
    FileCheck(A_LoopFileLongPath, FolderCheck, ListNum "_" A_Index)
   Else
    FileCheck%ListNum%_%A_Index% = 000000
   %ListNum%_%A_Index% := FileCheck%ListNum%_%A_Index%
  }
  Else
   %ListNum%_%A_Index% := A_LoopFileSize
  %ListNum%_%A_Index%Check := A_LoopFileLongPath
  FileCheck%ListNum% += %ListNum%_%A_Index%
 }
}

_________________
Sakurako ^_^


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 11th, 2008, 3:37 am 
Offline

Joined: February 20th, 2008, 11:20 am
Posts: 5
it's good function. i like it. :D


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 32 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group