re: SLOW running dos program in XP
Friday, February 6, 2004 at 1:45 pm Windows XP Annoyances Discussion Forum
Posted by morley
(36 messages posted)
Hi JB--thanks for the interest. It's been a long time since I started this thread
and I have kinda given up on finding the answer to this problem. I have tried the
virus check, defrag, disk error checks ad nauseum. The dos program on my laptop
does NOT totally stop but runs consistently about 1/20th the speed that it is supposed
to. Originally, when installed on my laptop it worked flawlessly for months--then
one day, out of the blue, for no apparent reason, the program began to crawl. I
may have added software, hardware--something along the way that has interfered, but
I cannot pin it down--too long ago! You state "then stuck for
>ages when it used the data file" which does not happen in my program. But I would
still be interested in knowing exactly how you : "I have now avoided the problem
by changing the method to avoid using the DOS for-loop". What did you change to
make the program run smoother? I should add, that I am not exceedingly computer
savy, but also not a total newbie, having been only self-taught.
thanks again,
morley
On Friday, February 6, 2004 at 8:47 am, JB wrote:
>I have a DOS batch file which uses a DOS for-loop to pass the names of all files
>*.png in a specific directory to another DOS batch file. The second DOS batch file
>is
>executed repeatedly, once for each file. It checks whether a corresponding file
exists
>in another directory, and if so, appends a record to a data file. After the for-loop,
>the first DOS batch file triggers off a C++ executable which performs tests on the
>files listed in the data file.
>
>This batch file used to run quite quickly on other Windows operating systems, and
>on XP, but it got slow for no apparent reason. When it slowed, it got as far as
running
>the C++ program, then stuck for
>ages when it used the data file.
>
>The first time it ran slowly, I ran virus checks, disk error checks, and disk defragmenter,
>and it was OK
>again. It got slow again, but the second time, the same treatment did not cure it.
>
>I looked at what was happening while the machine was running slow, and found that
>the C++ program started running while the DOS for-loop was still building its data
>file. The Task Manager showed that all the memory was used, and the CPU usage was
>about equally split between 2 processes, the one I knew about and System.
>
>,
>but I still do not understand what could have been happening when the machine seized
>up, and what was the underlying difference between my machine when it ran the batch
>file quickly and my machine when it was slow.
>
>Could this relate to your problem?
|
All messages in this thread [show all]
 |  |  | re: SLOW running dos program in XP (morley: Fri, Feb 6, 2004, 1:45 pm) |
| |
| |
Return to the Windows XP Discussion Forum
|
|