Re: Issue in execution of batch files Windows XP Pro
- From: Marco B <MarcoB@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 23 Dec 2008 00:00:03 -0800
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.
"Pegasus (MVP)" wrote:
.
"Marco B" <MarcoB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E39325A3-3134-4DB7-9837-CA6B87482BE0@xxxxxxxxxxxxxxxx
I see you comment, but what we are experiencing is exaclty that .bat files
are executed slowly than .cmd. The difference is taht .bat file generate
high
network traffic, looking at the SMB packets it seems that .bat files are
managed with "Random access" and .cmd files are accessed "Sequential
only".
I know that this different behaviour is not usual in Windows
enviroment....
this is our issue try to understand why we have this differences in files
management at SMB level that generates differences in performance in
execution and high network traffic.
Kind regards.
I ran some tests of my own and was unable to confirm your claim. I suspect
there is something else that's leading you to suspect a difference between
..bat and .cmd files, e.g.
- You're not specifying the full path, name and extension of the file you're
executing, hence you might run something other than what you think you're
running.
- Your batch/command file calls itself but again the "call" commands do not
specify a full path, name and extension.
- Your measurements are contaminated by network traffic not generated by
your command/batch file.
- Your virus scanner/firewall treats your .bat/.cmd files differently.
I would perform these tests on a clean Windows machine that is free from the
various types of third-party software.
If you post your batch file then someone will have a closer look at it.
- Follow-Ups:
- Re: Issue in execution of batch files Windows XP Pro
- From: Pegasus \(MVP\)
- Re: Issue in execution of batch files Windows XP Pro
- References:
- Issue in execution of batch files Windows XP Pro
- From: Marco B
- Re: Issue in execution of batch files Windows XP Pro
- From: Pegasus \(MVP\)
- Re: Issue in execution of batch files Windows XP Pro
- From: Marco B
- Re: Issue in execution of batch files Windows XP Pro
- From: Pegasus \(MVP\)
- Issue in execution of batch files Windows XP Pro
- Prev by Date: Re: No "Turn Off Computer" Option on XP Login Screen
- Next by Date: Autoplay - Out of ideas.
- Previous by thread: Re: Issue in execution of batch files Windows XP Pro
- Next by thread: Re: Issue in execution of batch files Windows XP Pro
- Index(es):
Relevant Pages
|