batch file stall for no apparent reason
-
- Member
- Posts: 396
- Joined: Wed Nov 18, 2015 3:04 pm
- Location: San Jose San Francisco Bay Area
- Contact:
batch file stall for no apparent reason
i maintain some dos batch files to automate stuff however in recent ed. of Windows (10, 2016 etc) it stall for no apparent reason. Literally execution of script halts and nothing happens. If I "nudge" but pressing an enter key at the command prompt then it continues. It is highly sporadic and intermittent event. Not sure how it is explained.
key takeaway after spending yrs on sw industry: big issue small because everyone jumps on it and fixes it. small issue is big since everyone ignores and it causes catastrophy later. #devilisinthedetails
Re: batch file stall for no apparent reason
Well, thanks for telling us but do you expect sensible comment from people who haven't seen your batch files?
Re: batch file stall for no apparent reason
ggodw000 wrote:Not sure how it is explained.
Code: Select all
pause
As iansjack says, we need more information. Is the batch file in question a reasonable size to post in code tags?
Adam
-
- Member
- Posts: 396
- Joined: Wed Nov 18, 2015 3:04 pm
- Location: San Jose San Francisco Bay Area
- Contact:
Re: batch file stall for no apparent reason
there is no pause or anything like that. just normal simple batch commands. No loops or convoluted code just series of commands.
key takeaway after spending yrs on sw industry: big issue small because everyone jumps on it and fixes it. small issue is big since everyone ignores and it causes catastrophy later. #devilisinthedetails
Re: batch file stall for no apparent reason
Hi,
Let me check my crystal ball...
This really still doesn't help. Please post the exact bacth file you are running (not an edited or re-typed one for the forum) in code tags if you want any assistance.
Adam
Let me check my crystal ball...
This really still doesn't help. Please post the exact bacth file you are running (not an edited or re-typed one for the forum) in code tags if you want any assistance.
Adam
Re: batch file stall for no apparent reason
Hi ggodw88,
I suspect some of the programs you call batch file is causing the issue. There is no information, if you are on a deadline and do not have enough time to diagnose it, then write simple program that attaches to the Batch file window ( using C#, use the {Process class to get process details, gets the content , see if its stuck or not and then sends it an enter using SendKeys.SendWait or something .. ). This an absolute last resort if you have nothing else available and not at all recommended, sometimes when I was a test developer I had to resort means like this when some of the utilities inherently have lot of bugs. Ugly for sure!
--Thomas
I suspect some of the programs you call batch file is causing the issue. There is no information, if you are on a deadline and do not have enough time to diagnose it, then write simple program that attaches to the Batch file window ( using C#, use the {Process class to get process details, gets the content , see if its stuck or not and then sends it an enter using SendKeys.SendWait or something .. ). This an absolute last resort if you have nothing else available and not at all recommended, sometimes when I was a test developer I had to resort means like this when some of the utilities inherently have lot of bugs. Ugly for sure!
--Thomas