Board logo

标题: 据说是 cmd 的源码 [打印本页]

作者: CrLf    时间: 2014-8-29 20:51     标题: 据说是 cmd 的源码

不懂真的假的,就算是真的,估计也是很旧的版本吧...
链接: https://pan.baidu.com/s/1QAfmBM9zGkIHiTpdvDkOIA 提取码: 2z4n
作者: plp626    时间: 2014-8-29 21:53

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

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

作者: CrLf    时间: 2014-8-29 22:08

回复 2# plp626


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

    但用 tcc 编译无法通过,卡在 qsort 上了
作者: CrLf    时间: 2014-8-29 22:41

不过如果要在此基础上重写,必然不会再考虑 nt4 了呀
作者: neorobin    时间: 2014-8-29 22:54

回复 1# CrLf


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

微软官网上有这样一则
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.
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.


https://www.microsoft.com/en-us/ ... 2windowssource.aspx
作者: CrLf    时间: 2014-8-29 22:56

本帖最后由 CrLf 于 2014-8-29 22:58 编辑

回复 5# neorobin


    好!到 win2000 已经是 nt5 了
    看到 csdn 下载频道的评论中有人发百度盘的链接:
http://pan.baidu.com/share/link? ... 5&uk=3004004375
作者: bailong360    时间: 2014-8-30 16:03

这么厉害
作者: Demon    时间: 2014-8-30 22:50

本帖最后由 Demon 于 2014-8-30 22:53 编辑

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

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

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

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

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




欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2