Annoyances.org
Home » Windows XP Discussion Forum » Message 1076103945 Search | Help | Home
  
Tip: Run a free scan for common Windows errors ad

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?


Written in response to:
re: SLOW running dos program in XP (JB: Friday, February 6, 2004 at 8:47 am)

Responses to this message:
*re: SLOW running dos program in XP (JB: Saturday, February 7, 2004 at 2:07 am)

All messages in this thread [show all]
-SLOW running dos program in XP (morley: Thu, Nov 13, 2003, 4:21 pm)
-re: SLOW running dos program in XP (Tom Swanson: Thu, Nov 13, 2003, 6:08 pm)
-re: SLOW running dos program in XP (morley: Thu, Nov 13, 2003, 7:36 pm)
-re: SLOW running dos program in XP (Tom Swanson: Thu, Nov 13, 2003, 9:03 pm)
*re: SLOW running dos program in XP (morley: Fri, Nov 14, 2003, 6:26 am)
-re: SLOW running dos program in XP (JB: Fri, Feb 6, 2004, 8:47 am)
-re: SLOW running dos program in XP (morley: Fri, Feb 6, 2004, 1:45 pm)
-re: SLOW running dos program in XP (JB: Sat, Feb 7, 2004, 2:07 am)
-re: SLOW running dos program in XP (morley: Sun, Feb 8, 2004, 8:12 am)
-re: SLOW running dos program in XP (JB: Mon, Feb 9, 2004, 9:07 pm)
-re: SLOW running dos program in XP (morley: Tue, Feb 10, 2004, 6:56 am)
-re: SLOW running dos program in XP (JB: Tue, Feb 10, 2004, 7:26 am)
-re: SLOW running dos program in XP (morley: Wed, Feb 11, 2004, 6:44 am)
-re: SLOW running dos program in XP (JB: Thu, Feb 12, 2004, 5:45 am)
-re: SLOW running dos program in XP (morley: Fri, Feb 13, 2004, 7:42 am)
*re: SLOW running dos program in XP (Massimo: Thu, Apr 28, 2005, 4:59 pm)
Return to the Windows XP Discussion Forum


All content at Annoyances.org is Copyright © 1995-2008 Creative Elementtm All rights reserved.
Please do not plagiarize; redistributing these pages without permission is strictly prohibited.