#define Max 100
void linkstr(char *org,char *add)
{
int pos=0,i=0;
while(org[pos]!='\0') pos++;
while(add[i]!='\0') org[pos++]=add[i++];
}
void main()
{
char fname[Max],
newPath[Max],
epath[Max]={"set Path=%Path%;"},
con1[Max] ={"SHSUCDHD.EXE /F:"};
printf(" --- Load *.Iso as CDROM for DOS --- \n");
printf(" --- Confirm SHSUCDX.EXE and SHSUCDX.EXE exist! ---\n");
printf("Input the two exe file path: ");
gets(newPath);
linkstr(epath,newPath);
printf("Input *.iso Name: ");
gets(fname);
linkstr(con1,fname);
system(epath);
system(con1);
system("SHSUCDX.EXE /D:SHSU-CDH");
}
void linkstr(char *org,char *add)
{
int pos=0,i=0;
while(org[pos]!='\0') pos++;
while(add[i]!='\0') org[pos++]=add[i++];
}
void main()
{
char fname[Max],
newPath[Max],
epath[Max]={"set Path=%Path%;"},
con1[Max] ={"SHSUCDHD.EXE /F:"};
printf(" --- Load *.Iso as CDROM for DOS --- \n");
printf(" --- Confirm SHSUCDX.EXE and SHSUCDX.EXE exist! ---\n");
printf("Input the two exe file path: ");
gets(newPath);
linkstr(epath,newPath);
printf("Input *.iso Name: ");
gets(fname);
linkstr(con1,fname);
system(epath);
system(con1);
system("SHSUCDX.EXE /D:SHSU-CDH");
}
