Skip to content

Instantly share code, notes, and snippets.

@JubbaSmail
Created November 13, 2014 10:52
Show Gist options
  • Select an option

  • Save JubbaSmail/6bd68f867b1b598f4418 to your computer and use it in GitHub Desktop.

Select an option

Save JubbaSmail/6bd68f867b1b598f4418 to your computer and use it in GitHub Desktop.
#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