Re: Issue in execution of batch files Windows XP Pro

Tech-Archive recommends: Fix windows errors by optimizing your registry



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.



.



Relevant Pages

  • Re: ASP.Net page will not run properly on the webserver
    ... code stopping execution? ... unlock button A series of If Else statements decides by the I.P. Address ... From this it calls an appropriate .bat file passing ... can unlock accross the network. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Issue in execution of batch files Windows XP Pro
    ... We are experiencing a strange issue related to execution of batch prgogram ... It seems that Windows XP generates big network traffic ...
    (microsoft.public.windowsxp.general)
  • Re: Scheduled tasks dont end
    ... Here's the bat file: ... echo %date% %time% Start of task> c:\test.log ... involved in the execution of a batch file???? ...
    (microsoft.public.windowsxp.general)
  • Re: The Relative Importance of Web Development
    ... accounting functions to "overnight" and batch. ... With a network, ... COBOL just isn't the right paradigm for todays processing. ... Stepping up to web services means it ...
    (comp.lang.cobol)
  • Re: uicontextmenu
    ... In our lab the computers synchronize via network. ... analysis process with a gui - which is using uicontextmenus. ... What I needed to do was to postpone the execution ... the user opens an uicontextmenu - a semaphore is set to ...
    (comp.soft-sys.matlab)