batch file stall for no apparent reason

Programming, for all ages and all languages.
Post Reply
ggodw000
Member
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

Post by ggodw000 »

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
User avatar
iansjack
Member
Member
Posts: 4688
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: batch file stall for no apparent reason

Post by iansjack »

Well, thanks for telling us but do you expect sensible comment from people who haven't seen your batch files?
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: batch file stall for no apparent reason

Post by AJ »

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
ggodw000
Member
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

Post by ggodw000 »

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
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: batch file stall for no apparent reason

Post by AJ »

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
User avatar
Thomas
Member
Member
Posts: 281
Joined: Thu Jun 04, 2009 11:12 pm

Re: batch file stall for no apparent reason

Post by Thomas »

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
Post Reply