Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Error when running .bat to kill then restart a process


  • Please log in to reply
7 replies to this topic

#1 jmextratall

jmextratall

  • Members
  • 4 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Minneapoils, MN
  • Local time:02:13 PM

Posted 31 July 2014 - 10:47 AM

I am running ADSDOSIP to connect to our Advantage Database Server in a Windows XP.

 

Sometimes the ADSDOSIP connection drops so I wrote a script to kill it and restart the process ADSDOSIP.exe:

 

cd..
cd..
taskkill /f /im ADSDOSIP.exe
@start "" "C:\Express\ADSDOSIP\ADSDOSIP.exe
 
When I run this script, every other time i get an error:
 
CNetBios::Create AddName failed. Error Code: 35
 
Two questions:
 
1. Why am I getting this error consistently every other time I stop and restart ADSDOSIP?
 
2. Is there a way to modify my batch file to account for this error if it occurs?
 
Thank you!


BC AdBot (Login to Remove)

 


#2 SleepyDude

SleepyDude

  • Malware Response Team
  • 3,083 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Portugal
  • Local time:09:13 PM

Posted 31 July 2014 - 11:21 AM

Hi :welcome: to BC,

 

 

Do you know if the Advantage Database Server is running from a windows service?


• Please do not PM me asking for support. Post on the forums instead it will increases the chances of getting help for your problem by one of us.
• Posts in the Malware section that are not replied to within 4 days will be closed. PM me or a moderator to reactivate.
• Please post your final results, good or bad. We like to know! Thank you!

 
Proud graduate of GeekU and member of UNITE
___
Rui

 
 


#3 jmextratall

jmextratall
  • Topic Starter

  • Members
  • 4 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Minneapoils, MN
  • Local time:02:13 PM

Posted 31 July 2014 - 11:26 AM

It's running on a Windows server, 2008 64-bit, RS2



#4 SleepyDude

SleepyDude

  • Malware Response Team
  • 3,083 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Portugal
  • Local time:09:13 PM

Posted 31 July 2014 - 12:00 PM

Sorry I made a mistake is ADSDOSIP running from a service?


• Please do not PM me asking for support. Post on the forums instead it will increases the chances of getting help for your problem by one of us.
• Posts in the Malware section that are not replied to within 4 days will be closed. PM me or a moderator to reactivate.
• Please post your final results, good or bad. We like to know! Thank you!

 
Proud graduate of GeekU and member of UNITE
___
Rui

 
 


#5 jmextratall

jmextratall
  • Topic Starter

  • Members
  • 4 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Minneapoils, MN
  • Local time:02:13 PM

Posted 01 August 2014 - 08:16 AM

Sorry, I got sidetracked from this yesterday. No, I don't believe ADSDOSIP is running from a service.



#6 SleepyDude

SleepyDude

  • Malware Response Team
  • 3,083 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Portugal
  • Local time:09:13 PM

Posted 01 August 2014 - 08:27 AM

Hi,

 

It could be because the server already have a connection from the same client, you need to wait for the connection ends on the server before reconnecting!


• Please do not PM me asking for support. Post on the forums instead it will increases the chances of getting help for your problem by one of us.
• Posts in the Malware section that are not replied to within 4 days will be closed. PM me or a moderator to reactivate.
• Please post your final results, good or bad. We like to know! Thank you!

 
Proud graduate of GeekU and member of UNITE
___
Rui

 
 


#7 jmextratall

jmextratall
  • Topic Starter

  • Members
  • 4 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Minneapoils, MN
  • Local time:02:13 PM

Posted 01 August 2014 - 09:19 AM

So is there a way to code a dely into the batch file to allow for the connection to end?



#8 SleepyDude

SleepyDude

  • Malware Response Team
  • 3,083 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Portugal
  • Local time:09:13 PM

Posted 01 August 2014 - 10:55 AM

So is there a way to code a dely into the batch file to allow for the connection to end?

 

Several techniques here.


• Please do not PM me asking for support. Post on the forums instead it will increases the chances of getting help for your problem by one of us.
• Posts in the Malware section that are not replied to within 4 days will be closed. PM me or a moderator to reactivate.
• Please post your final results, good or bad. We like to know! Thank you!

 
Proud graduate of GeekU and member of UNITE
___
Rui

 
 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users