Skip to content

Instantly share code, notes, and snippets.

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

  • Save JubbaSmail/2cd395148058f13dfebf to your computer and use it in GitHub Desktop.

Select an option

Save JubbaSmail/2cd395148058f13dfebf to your computer and use it in GitHub Desktop.
#include <windows.h>
#include <stdio.h>
#if define UNICODE
#define CreateDirectory CreateDirectoryW
#else
#define CreateDirectory CreateDirectoryA
#endif
int main(int argc, LPTSTR argv[])
{
if (argc != 2) {
fprintf(stderr, "Usage: mymkdir dirName\n");
return 1;
}
CreateDirectory(argv[1],NULL);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment