User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 402,972 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,724 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser: Programming Forums
Views: 275 | Replies: 9 | Solved
Reply
Join Date: Nov 2007
Location: Banjaluka,RS,Bosnia
Posts: 283
Reputation: kv79 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 7
kv79 kv79 is offline Offline
Posting Whiz in Training

about C and exe

  #1  
Jul 17th, 2008
Hi all,
I have a sample.bat file .

I want to execute that file 10 times .

I dunno command that executes bat files .
Last edited by kv79 : Jul 17th, 2008 at 6:29 am.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2007
Location: Banjaluka,RS,Bosnia
Posts: 283
Reputation: kv79 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 7
kv79 kv79 is offline Offline
Posting Whiz in Training

Re: about C and exe

  #2  
Jul 17th, 2008
i try system("sample.bat");

because I send some e-mails and I am not receive it .
Reply With Quote  
Join Date: Jun 2008
Posts: 79
Reputation: Adak is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 7
Adak Adak is offline Offline
Junior Poster in Training

Re: about C and exe

  #3  
Jul 17th, 2008
Just
system("sample");

in a loop, will do. You may need to add a sleep(# of seconds) statement, before the next loop, so your bat file will have time to run, before the next call to run it.

Do you know if the commands inside the sample.bat file will actually send emails or not? That should be a first test, imo. Then you can time what you should have for a sleep in seconds. The time won't always be the same, so give your program some extra time.
Last edited by Adak : Jul 17th, 2008 at 7:35 am.
Reply With Quote  
Join Date: Nov 2007
Location: Banjaluka,RS,Bosnia
Posts: 283
Reputation: kv79 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 7
kv79 kv79 is offline Offline
Posting Whiz in Training

Re: about C and exe

  #4  
Jul 17th, 2008
thanks for Idea but I had a some wrong syntax and that cause a failure , but now I just enter how many email I want to send and it is done . I am ready for bombarding .
Last edited by kv79 : Jul 17th, 2008 at 9:30 am.
Reply With Quote  
Join Date: Oct 2006
Location: the Netherlands
Posts: 1,630
Reputation: niek_e is just really nice niek_e is just really nice niek_e is just really nice niek_e is just really nice 
Rep Power: 8
Solved Threads: 168
niek_e's Avatar
niek_e niek_e is offline Offline
Posting Virtuoso

Re: about C and exe

  #5  
Jul 17th, 2008
Originally Posted by kv79 View Post
I am ready for bombarding .


Time for a moderator?
Attached Images
File Type: jpg moderator.jpg (71.1 KB, 7 views)
Want better/more replies to your questions? Wrap your code in [code] [/code] tags!
do NOT pm me for help, in the best case, you'll get ignored
Reply With Quote  
Join Date: Nov 2007
Location: Banjaluka,RS,Bosnia
Posts: 283
Reputation: kv79 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 7
kv79 kv79 is offline Offline
Posting Whiz in Training

Re: about C and exe

  #6  
Jul 17th, 2008
every syntax or C or any other language could be use in wrong purpose .
So ,do not be a smart ass niek_e.
You won't get moderators attention just because of this .
Now you know why you are not moderator .
Last edited by kv79 : Jul 17th, 2008 at 10:53 am.
Reply With Quote  
Join Date: Oct 2006
Location: the Netherlands
Posts: 1,630
Reputation: niek_e is just really nice niek_e is just really nice niek_e is just really nice niek_e is just really nice 
Rep Power: 8
Solved Threads: 168
niek_e's Avatar
niek_e niek_e is offline Offline
Posting Virtuoso

Re: about C and exe

  #7  
Jul 17th, 2008
Originally Posted by kv79 View Post
every syntax or C or any other language could be use in wrong purpose .

You're right. But it's against the forum rules

Originally Posted by kv79 View Post
So ,do not be a smart ass niek_e.

Hell yeah, even my ass is smart!

Originally Posted by kv79 View Post
You won't get moderators attention just because of this .


No I won't, but the 'flag bad post' button I clicked will
Want better/more replies to your questions? Wrap your code in [code] [/code] tags!
do NOT pm me for help, in the best case, you'll get ignored
Reply With Quote  
Join Date: Sep 2004
Posts: 6,070
Reputation: Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of 
Rep Power: 26
Solved Threads: 419
Super Moderator
Narue's Avatar
Narue Narue is offline Offline
Expert Meanie

Re: about C and exe

  #8  
Jul 17th, 2008
I wouldn't say that we've entered the realm of issuing infractions quite yet, but it's getting closer. kv79, I'd suggest you refrain from even implying that you intend to spam or engage in DoS attacks in the future.
I'm a programmer. My attitude starts with arrogance, holds steady at condescension, and ends with hostility. Get used to it.
Reply With Quote  
Join Date: Nov 2007
Location: Banjaluka,RS,Bosnia
Posts: 283
Reputation: kv79 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 7
kv79 kv79 is offline Offline
Posting Whiz in Training

Re: about C and exe

  #9  
Jul 17th, 2008
ok, but I did't said anything about attacking .
Reply With Quote  
Join Date: Sep 2004
Posts: 6,070
Reputation: Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of 
Rep Power: 26
Solved Threads: 419
Super Moderator
Narue's Avatar
Narue Narue is offline Offline
Expert Meanie

Re: about C and exe

  #10  
Jul 17th, 2008
>but I did't said anything about attacking .
You strongly implied it.
I'm a programmer. My attitude starts with arrogance, holds steady at condescension, and ends with hostility. Get used to it.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C Forum

All times are GMT -4. The time now is 7:42 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC