if( !SetCurrentDirectory(argv[1])) { printf("SetCurrentDirectory failed (%d)\n", GetLastError()); return; }