Hi all,
I have a sample.bat file .

I want to execute that file 10 times .

I dunno command that executes bat files .

Recommended Answers

All 9 Replies

i try system("sample.bat");

because I send some e-mails and I am not receive it .

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.

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 .

commented: "I am ready for bombarding" .... :( -1

I am ready for bombarding .

Time for a moderator?

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 .

every syntax or C or any other language could be use in wrong purpose .

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

So ,do not be a smart ass niek_e.

Hell yeah, even my ass is smart!

You won't get moderators attention just because of this . :)

No I won't, but the 'flag bad post' button I clicked will :)

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.

ok, but I did't said anything about attacking . :)

>but I did't said anything about attacking .
You strongly implied it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.