I'll try to explain. I've got a C++ program that is going to copy files from it's folder which it is located in to another location. So, I'd say f.x. I had a directory called "Flash". Then, inside that directory would be "myprogram.exe" and 4 other directories. Within those 4 directories would be .txt files which I'd want that myprogram.exe to copy to another location.
Because I want the program to be able to be executed anywhere, I want to make the program clear that it is supposed to look in it's self directory. So, how is the command? I know that to copy a file from f.x. C:\program files\test.txt all I have to do is to do:
system("copy C:\\Program Files\\test.txt C:\\Program Files\\output\\test.txt");
So, I'd copy test.txt from "program files" to "program files\\output". But I want the program to read from it's folder, copying from whatever location that folder "Flash" was located in the system, (Flash was the folder that included "myprogram.exe"). Would the command be something similar to?:
system("copy ..\\folder 1\\test.txt C:\\Program files\\test");
Thanks for your time!