•
•
•
•
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
![]() |
•
•
Join Date: Nov 2007
Location: Banjaluka,RS,Bosnia
Posts: 283
Reputation:
Rep Power: 0
Solved Threads: 7
•
•
Join Date: Nov 2007
Location: Banjaluka,RS,Bosnia
Posts: 283
Reputation:
Rep Power: 0
Solved Threads: 7
•
•
Join Date: Jun 2008
Posts: 79
Reputation:
Rep Power: 1
Solved Threads: 7
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.
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.
•
•
Join Date: Nov 2007
Location: Banjaluka,RS,Bosnia
Posts: 283
Reputation:
Rep Power: 0
Solved Threads: 7
•
•
Join Date: Oct 2006
Location: the Netherlands
Posts: 1,630
Reputation:
Rep Power: 8
Solved Threads: 168
•
•
Join Date: Nov 2007
Location: Banjaluka,RS,Bosnia
Posts: 283
Reputation:
Rep Power: 0
Solved Threads: 7
•
•
Join Date: Oct 2006
Location: the Netherlands
Posts: 1,630
Reputation:
Rep Power: 8
Solved Threads: 168
•
•
•
•
every syntax or C or any other language could be use in wrong purpose .
You're right. But it's against the forum rules
Hell yeah, even my ass is smart!
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
do NOT pm me for help, in the best case, you'll get ignored
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.
•
•
Join Date: Nov 2007
Location: Banjaluka,RS,Bosnia
Posts: 283
Reputation:
Rep Power: 0
Solved Threads: 7
![]() |
•
•
•
•
•
•
•
•
DaniWeb C Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- svchost.exe using 100% cpu! (Windows NT / 2000 / XP / 2003)
- Windows 2000 pro - svchost.exe using 100% cpu (Windows NT / 2000 / XP / 2003)
- svchost.exe !! (Windows NT / 2000 / XP / 2003)
- Removing ISLE.exe (Windows NT / 2000 / XP / 2003)
Other Threads in the C Forum
- Previous Thread: Can you use an array of pointers for fgets?
- Next Thread: trap stdout in C



Linear Mode