#include "stdafx.h"
#include <stdio.h>
#include <windows.h>
#include <tchar.h>
#include <conio.h>
#include <stdlib.h>
int main(int argc, char* argv[])
{
if(argc<3)
{
printf("Usage: \n setvolume <letter:> <volumelabel>\n Author :Mr.wu");
exit(0);
}
if(SetVolumeLabel(argv[1],argv[2])==0)
{
printf("%s,%s Error occurred! error code = %d",argv[1],argv[2],GetLastError());
printf("Press any key to exit");
getche();
}
return 0;
}