•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 397,720 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,559 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:
Views: 256 | 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: 6
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,598
Reputation:
Rep Power: 8
Solved Threads: 163
•
•
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,598
Reputation:
Rep Power: 8
Solved Threads: 163
•
•
•
•
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
do NOT pm me for help, it makes me angry. You wouldn't like me when I'm angry...
•
•
Join Date: Nov 2007
Location: Banjaluka,RS,Bosnia
Posts: 283
Reputation:
Rep Power: 0
Solved Threads: 7
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb C Marketplace
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