With reference to my previous thread on copying USB drive
http://www.vbforums.com/showthread.php?t=503894
I was told that the 'sleep' function pauses the application for specified time interval. (May not necessarily give time to other processes to run simultaneously ).Code:Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Is it true?
So what is the difference between 'sleep' and this loop?
Code:Dim date1 As Date date1 = Now While (DateDiff("s", date1, Now) < 5) Wend
My main concern is to let my application give some breathing time to other processes while copying folders of several gig in size




Reply With Quote