批处理之家's Archiver

CrLf 发表于 2014-8-29 20:51

据说是 cmd 的源码

不懂真的假的,就算是真的,估计也是很旧的版本吧...
链接: [url]https://pan.baidu.com/s/1QAfmBM9zGkIHiTpdvDkOIA[/url] 提取码: 2z4n

plp626 发表于 2014-8-29 21:53

从那淘出来的? 应该还有其他一大批代码吧?

看目录里面是win95的cmd, 应该是MS的源码[code]D:\DOCUME~1\plp\桌面\cmd\cmd>findstr /nis "microsoft" *.*
cdebug.c:89: *  Eric K. Evans, Microsoft
cinit.c:405:        rc = RegOpenKey(PredefinedKeys[i], TEXT("Software\\Microsoft
\\Command Processor"), &hKey);
cmd\sources:3:Copyright (c) 1989  Microsoft Corporation
cmd.rc:4:* Copyright (c) 1985-91, Microsoft Corporation
cmdmsg.mc:3:;Copyright (c) 1991  Microsoft Corporation
cmdmsg.mc:98:Microsoft(R) Windows %1(TM)
cmdmsg.mc:99:(C) Copyright 1985-1996 Microsoft Corp.
cmdmsg.mc:867:    HKEY_CURRENT_USER\Software\Microsoft\Command Processor\EnableE
xtensions
cparse.c:374: *      Microsoft's DOS manual says for loop vars can't be digits b
ut the IBM
dirs:3:Copyright (c) 1989  Microsoft Corporation
hstoi.c:8: *  Eric K. Evans, Microsoft
string.c:10: *  John Tupper, Microsoft
uipriv.c:3:Copyright (c) 1992  Microsoft Corporation
win95cmd\sources:3:Copyright (c) 1989  Microsoft Corporation[/code]

CrLf 发表于 2014-8-29 22:08

[b]回复 [url=http://bbs.bathome.net/redirect.php?goto=findpost&pid=153285&ptid=31660]2#[/url] [i]plp626[/i] [/b]


    从这里下的,我也好奇他是从哪里搞来:
[url]http://download.csdn.net/detail/sitelist/5361067[/url]

    但用 tcc 编译无法通过,卡在 qsort 上了

CrLf 发表于 2014-8-29 22:41

不过如果要在此基础上重写,必然不会再考虑 nt4 了呀

neorobin 发表于 2014-8-29 22:54

[b]回复 [url=http://www.bathome.net/redirect.php?goto=findpost&pid=153279&ptid=31660]1#[/url] [i]CrLf[/i] [/b]


    [url]http://www.baidu.com/s?wd=windows_2000_source_code[/url]

微软官网上有这样一则
[quote]Statement from Microsoft Regarding Illegal Posting of Windows 2000 Source Code
Feb. 12, 2004
Microsoft is working closely with the FBI. Investigation has shown this was not the result of any breach of Microsoft’s corporate network or internal security.[/quote]
[quote]REDMOND, Wash., Updated, Feb. 20, 2004 — On Thursday, February 12, Microsoft became aware that portions of the Microsoft Windows 2000 and Windows NT 4.0 source code were illegally made available on the Internet.[/quote]

[url]https://www.microsoft.com/en-us/news/press/2004/feb04/02-12windowssource.aspx[/url]

CrLf 发表于 2014-8-29 22:56

[i=s] 本帖最后由 CrLf 于 2014-8-29 22:58 编辑 [/i]

[b]回复 [url=http://bbs.bathome.net/redirect.php?goto=findpost&pid=153293&ptid=31660]5#[/url] [i]neorobin[/i] [/b]


    好!到 win2000 已经是 nt5 了
    看到 csdn 下载频道的评论中有人发百度盘的链接:
[url]http://pan.baidu.com/share/link?shareid=3598741925&uk=3004004375[/url]

bailong360 发表于 2014-8-30 16:03

这么厉害:o

Demon 发表于 2014-8-30 22:50

[i=s] 本帖最后由 Demon 于 2014-8-30 22:53 编辑 [/i]

Windows NT4 和Windows 2000的源码都泄露这么多年了,你们居然不知道?

[url]http://bbs.pediy.com/showthread.php?t=18186[/url]

据说NT 4是完整源码,有人还编译通过了,2000只是部分源码,并且不包含CMD的源码。

结合我用OD调试的经验,XP之后的CMD与NT 4的CMD代码大概有80%是相同的,并在此之上做了完善。

例如,NT 4的CMD是没有变量延迟拓展的,set也不支持/p选项,等等。

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.