Run a program, change a folder name

Hi,

i wondered if it were possible to point me in the direction of

making a small program that starts another exe and then changes the name of a folder?

also is there a way to delay by 1 minute the changing of the folders name?
thanks for the links!

i was hoping to stay in C++, i feel a little lost at the moment in my internets training and ran across a problem i thought sounded easy enough to solve.

was looking for some hints to kind of show me what kind of functions i could use for this.

Thanks again
I don't know where the problem is?

The code would look like this:
1
2
3
4
5
6
7
8
...

int main()
{
  WinExec("\"C:\\Program Files\\MyApp.exe\"", SW_SHOW);
  Sleep(1000 * 60); // waits 1 minute
  rename("a\\b\\c", "a\\b\\D");
}

This is windows code because starting a new exe is system dependant. Is that your problem?
Yes, i was a little confused, i didn't know if there was some windows sdk or something that utilized that code.

(i picked up a free tutorial 2 days ago, and bought a book last night, other than that i am completely clueless).

Is there a specific library i would use to define the identifiers? Is there a way for me to look into the libraries to see what each of them do?

Maybe just drop some hints on where to go from here, apologies if I'm being a little slow on the uptake. Thanks for your help!
Topic archived. No new replies allowed.