0

can any1 help me with my code because i cant delete and copy a folder but i can copy and delete other file extensions in my code. it would be a great help if you can help me with this cause im new in c++...thank you and godbless.

code for the copy:

#include "stdafx.h"
#include <windows.h>
#include <conio.h>



int _tmain(int argc, _TCHAR* argv[])
{


    CopyFile(argv[1],argv[2],TRUE);


    getch();
    return 0;

}

code for the delete:

#include "stdafx.h"
#include <windows.h>
#include <conio.h>



int _tmain(int argc, _TCHAR* argv[])
{

    DeleteFile(argv[1]);



    getch();
    return 0;

}
2
Contributors
1
Reply
19
Views
3 Years
Discussion Span
Last Post by tinstaafl
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.