Created
November 13, 2014 10:52
-
-
Save JubbaSmail/6bd68f867b1b598f4418 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <windows.h> | |
| #include <stdio.h> | |
| #if define UNICODE | |
| #define MoveFile MoveFileW | |
| #else | |
| #define MoveFile MoveFileA | |
| #endif | |
| int main(int argc, LPTSTR argv[]) | |
| { | |
| if (argc != 3) { | |
| fprintf(stderr, "Usage: myMove file1 file2\n"); | |
| return 1; | |
| } | |
| MoveFile(argv[1], argv[2]); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment