P
Pegasus \(MVP\)
Marco B said:My batch program is the simplest one just a creation of folders on a
network
drive and copying a small file (1kb) from the local disc c: to the netwrk
folder just created (like the below code)
md \\<machine-name>\<shared-folder> \<new_folder>
copy c:\<test_file> \\<machine-name>\<shared-folder>\<new_folder>
......
What we noticed is that bigger is the file batch file (just placing more
text line in the batch file after the command copy) slower is the
execution.
Just changing the extension from .bat to .cmd the execution become faster.
I think you have two options:
a) Assume a pragmatic attitude: Since running your program as a .cmd file
for whatever reasons, accept it and leave it at that.
b) Satisfy your curiosity. Since it is very unlikely that Windows is the
cause of the difference, keep digging until you find the real cause.
As you see from the various replies in this thread, there are quite a few
myths surrounding .bat/.cmd files. To get down to the facts requires a bit
of time and effort which you will have to spend.