#include<stdio.h>
#include<windows.h>
#include<tchar.h>
int main()
{
char rarPath[256];
puts(_T("填入妳系統的WINRAR.exe所在目錄:"));
gets(rarPath);
SetCurrentDirectory(rarPath);
//解壓c:\1.rar到Myjpg目錄裏
char* lcm="rar x \"c:\\1.rar\" \"c:\\Myjpg\\\"";
printf("shell command line :%s\n",lcm);
system(lcm);
puts(_T("解壓完畢."));
return 0;
}