1.

Solve : compute execution time?

Answer»

i don't know how to compute the time that it takes for a batch file to execute.
i also have a folder(named "a" for example) and i want to
keep some files and some folders( folder "b" and files "c" and "d" for example) and delete all the rest("b","c" and "d" are INSIDE the folder "a").
Does ANYONE have any ideas???

thanks in advance...Copy the files to the root of "a" that you want saved and TYPE RD on each directory you want removed.

[glb]Gizmo73[/glb]Batch language does not do date or time calculations, unless you are prepared to write a boatload of IF statements or complex RECURSIVE routines.

One idea, put a time /t > batch.log statement at the beginning and a time /t >> batch.log statement at end of your batch file. You'll have to do the actual arithmetic.

Hope this helps.



Discussion

No Comment Found