Board logo

标题: [原创]DOS加载ISO镜像的C程序 [打印本页]

作者: cmsaint168     时间: 2008-3-13 08:48    标题: [原创]DOS加载ISO镜像的C程序

#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");
}
作者: zyl910     时间: 2008-3-13 09:50
SHSUCDX.EXE 是什么?
作者: johnsonlam     时间: 2008-3-13 12:13

SHCDX33C is an unloadable "CD-ROM redirector" substitute for MSCDEX.  It supports up to 10 drives.   Each drive is single-sector buffered and the last 10 directory entries are cached.    Each unit of each driver can be assigned a specific drive letter.

作者: johnsonlam     时间: 2008-3-13 12:23

可 以 把 SHSUCDHD  和 SHSUCDX 的 源 碼 直 接 包 括 在 內 嗎 ?

這 種 『 在 執 行 程 序 中 再 執 行 另 外 一 個 程 序 』 好 像 不 太 好 ...

也 不 可 以 獨 立 執 行 , 必 須 要 附 帶  SHSUCDHD  和 SHSUCDX 。