OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Dec 12, 2017 11:53 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: batch file stall for no apparent reason
PostPosted: Thu Oct 12, 2017 4:11 pm 
Offline
Member
Member

Joined: Wed Nov 18, 2015 3:04 pm
Posts: 293
Location: San Jose San Francisco Bay Area
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


Top
 Profile  
 
 Post subject: Re: batch file stall for no apparent reason
PostPosted: Fri Oct 13, 2017 12:36 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 3027
Location: Chichester, UK
Well, thanks for telling us but do you expect sensible comment from people who haven't seen your batch files?


Top
 Profile  
 
 Post subject: Re: batch file stall for no apparent reason
PostPosted: Fri Oct 13, 2017 3:48 am 
Offline
Member
Member
User avatar

Joined: Sun Oct 22, 2006 7:01 am
Posts: 2562
Location: Devon, UK
ggodw000 wrote:
Not sure how it is explained.


Code:
pause
?

As iansjack says, we need more information. Is the batch file in question a reasonable size to post in code tags?

Adam


Top
 Profile  
 
 Post subject: Re: batch file stall for no apparent reason
PostPosted: Fri Oct 13, 2017 12:51 pm 
Offline
Member
Member

Joined: Wed Nov 18, 2015 3:04 pm
Posts: 293
Location: San Jose San Francisco Bay Area
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


Top
 Profile  
 
 Post subject: Re: batch file stall for no apparent reason
PostPosted: Sat Oct 14, 2017 2:58 am 
Offline
Member
Member
User avatar

Joined: Sun Oct 22, 2006 7:01 am
Posts: 2562
Location: Devon, UK
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


Top
 Profile  
 
 Post subject: Re: batch file stall for no apparent reason
PostPosted: Wed Nov 15, 2017 11:22 am 
Offline
Member
Member
User avatar

Joined: Thu Jun 04, 2009 11:12 pm
Posts: 229
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group