ok this is what i have so far
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char *cKv = "C:\\Windows\\System32\\cmd.exe /Q /C";
FILE *fp = _popen(cKv, "r");
char buf[255];
int i = 0;
while (fgets(buf, sizeof(buf), fp)) ;
char b[255];
char *a = gets(b);
printf("1 file %s\n", b);
a = gets(b);
printf("2 file %s\n", b);
system("pause");
_pclose(fp);
return 0;
}
decided to use cmd for it, and now can u help me make this programm also so it switches files locations
like about so
New Folder\folder\file1.exe
New Folder(2)\folder\file2.exe
and after switch its so
New Folder\folder\file2.exe
New Folder(2)\folder\file1.exe