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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculate the total time to copy files

Status
Not open for further replies.

Wantabie

Programmer
Apr 29, 2004
72
US
Okay,

Here is a question that has me stump'd:

How would you get the total amount of time it would take to copy a file(s) and then subtract time as it is being copied?

(i.e. "Estimated time left: <calTime>", "Time remaining:", etc.)
 
AppoxCompleteTime = DateAdd("s", (DateDiff("s", StartTime, time()) / PercentDone) * 100, StartTime)

&quot;Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.&quot;
 
Thanks DrJavaJoe for you posting. I am still trying to figure out how to implement it into my code.

Wantabie
 
I see you've also asked this question in VBScript AND VBA forums. You need to decide which system you are using then ask in the right forum.

Suggest you read faq222-2244 to find how to get the best use of the forums, as cross-posting is discouraged (and counterproductive for you).

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
johnwm,
You are correct..

Reasoning: I was looking for anyone in any of those forums that could possible understand and explain to me how it would be possible.

Being that Visual Basic is essentially the same in all three methods, at least in my experiences. I figured that i will get a response in at least one that could help. Which I did, but still trying to implement it. And, although vbscripting and VBA doesn't have the full power as vb 5, 6 or .net. i was hoping to get a response in one of them that i can try an implement into a sample code. Then try and convert it into the actual code i wish to implement it into, which is vbscript. ( hope that makes sense).

I write code in all three and if i can get one to work. I'm pretty sure i can convert into the others. Or, I will simplly come back to these forums and ask for further assistance.

I hope this helps as my explanation of what i am try to accomplish. If not, let me know.

Many thanks Johnwm
I look forward to your reply or anyone else for that matter,

cheers,

wantabie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top