Hey can anyone tell me how to make a program that i can have a cmd in the cmd to exacute over and over waiting 1 minute each time?
starjsjwars
0
Newbie Poster
Recommended Answers
Jump to PostSorry, I didn't get you, but can you please clarify more, give me example of your problem
Jump to Postyou should have a method take a string as a parameter and execute it as command like
void Execute(char* command)
{
system (command)
}and infinite loop in another thread let me write the pesudo code for it
for( ; ; )
call Execute stop this thread for …
Jump to PostWell since you seem to be using windows, there are already a couple of ways built in to do this.
1. Use the 'at' command
$ at /? The AT command schedules commands and programs to run on a computer at a specified time and date. …
Jump to Postwhile(true) { system("<yourcommand here>"); Sleep(90000);//have to include windows.h I think }
Jump to Posthmm... but what i mean is in the command prompt i tpye in C:/programfiles/blahblahblah so i hit enter. it opens the .exe. So when i hit the arrow up botton it has the same cmd in it.. so what i wanna do is have that arrow go up and exeute …
All 18 Replies
Ramy Mahrous
401
Postaholic
Featured Poster
starjsjswars2
0
Newbie Poster
Ramy Mahrous
401
Postaholic
Featured Poster
starjsjswars2
0
Newbie Poster
Salem
5,138
Posting Sage
starjsjswars2
0
Newbie Poster
Sturm
270
Veteran Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
starjsjswars2
0
Newbie Poster
Ramy Mahrous
401
Postaholic
Featured Poster
starjsjswars2
0
Newbie Poster
Salem
5,138
Posting Sage
Sturm
270
Veteran Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
starjsjswars2
0
Newbie Poster
Sturm
270
Veteran Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
starjsjswars2
0
Newbie Poster
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.