(轉)无能的WinXP
来源:互联网 发布:下载同步软件 编辑:程序博客网 时间:2024/05/01 08:00
本文轉自:http://www.gseeker.com/50226711/ecwinxp_39528.php
无能的WinXP?
大家也可以试一试:
在WinXP系统里,新建一个或夹,然后将它命名为con试试。
你成功了吗?
当然是失败,不能成功的。
这真是个很有趣的现像。大名鼎鼎的微软出品的WinXP,竟然连新建个指定的夹也不行?这也太"无能"了吧?
原因是什么?看下面分解。
It's not that weird. 'con' is a reserved word from the old DOS days, simply meaning 'console'. If you wanted to create a new text file in DOS you could type 'copy con newfile.txt' meaning copy from the console to newfile.txt. This would let you type some lines and when you ended the file with ^Z (DOSish for 'end of file') you would have a file called newfile.txt containing whatever you wrote in the console. This is indeed still possible in the Windows XP console, and can you see what mess it would cause if you let files or folders have the name 'con'? What would 'copy con newfile.txt' then mean? BSOD?
其实这并不能怪WinXP。因为"con"在DOS时代就是一个预定字,它实际上就是指"console"。如果你想在DOS下新建一个文本,你可以使用以下命令:
copy con newfile.txt
用这个命令可以将你在console控制台下所打的内容通通保存到一个newfile.txt文本里。就算是在WinXP的CMD里,这个命令依然有效。所以试想一下,如果你可以将或夹命名为con,那当你使用
copy con newfile.txt
命令的时候,会发生什么事?死机?或者更严重的后果。
类似地,在WinXP系统下,你不能将或命名为以下名字:
2006年4月1日补充:YeSun发现了在WinXP的Dos Shell下面实现创建CON夹的方法:
在运行里输入CMD后回车进入Dos Shell;
然后转至D:盘,输入下面的命令回车:
md coo/
这样就在D:盘里建立了一个名字为CON的夹。删除这个夹,同样是在Dos Shell下输入命令:
rd //?/d:/con /s /q
即可。
在WinXP系统里,新建一个或夹,然后将它命名为con试试。
你成功了吗?
当然是失败,不能成功的。
这真是个很有趣的现像。大名鼎鼎的微软出品的WinXP,竟然连新建个指定的夹也不行?这也太"无能"了吧?
原因是什么?看下面分解。
It's not that weird. 'con' is a reserved word from the old DOS days, simply meaning 'console'. If you wanted to create a new text file in DOS you could type 'copy con newfile.txt' meaning copy from the console to newfile.txt. This would let you type some lines and when you ended the file with ^Z (DOSish for 'end of file') you would have a file called newfile.txt containing whatever you wrote in the console. This is indeed still possible in the Windows XP console, and can you see what mess it would cause if you let files or folders have the name 'con'? What would 'copy con newfile.txt' then mean? BSOD?
其实这并不能怪WinXP。因为"con"在DOS时代就是一个预定字,它实际上就是指"console"。如果你想在DOS下新建一个文本,你可以使用以下命令:
copy con newfile.txt
用这个命令可以将你在console控制台下所打的内容通通保存到一个newfile.txt文本里。就算是在WinXP的CMD里,这个命令依然有效。所以试想一下,如果你可以将或夹命名为con,那当你使用
copy con newfile.txt
命令的时候,会发生什么事?死机?或者更严重的后果。
类似地,在WinXP系统下,你不能将或命名为以下名字:
CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9.
2006年4月1日补充:YeSun发现了在WinXP的Dos Shell下面实现创建CON夹的方法:
在运行里输入CMD后回车进入Dos Shell;
然后转至D:盘,输入下面的命令回车:
md coo/
这样就在D:盘里建立了一个名字为CON的夹。删除这个夹,同样是在Dos Shell下输入命令:
rd //?/d:/con /s /q
即可。
- (轉)无能的WinXP
- 无能的WinXP?
- 没有无能的员工,只有无能的管理者
- 深叹自己的无能
- 我的无能还有搅乱的内心
- 宋江、刘备、唐僧的“无能”之能
- 一味盲从是懦弱无能的表现
- 无能的很可能正是我们自己
- 无能的很可能正是我们自己
- 不要给自己的无能找借口
- 无能的很可能正是我们自己
- 无能的很可能正是我们自己
- 阴险的影音传送带和无能的趋势个人防火墙
- 创业者的钝根和无能的力量
- 对国汉的无能与无耻感到震惊!
- 猪无能
- WinXP 下的 MSG
- WinXP的BUG?
- 向女强人致敬!真的很不容易
- 重写GridView实现单击行变色的效果
- 登录页面嵌套在框架中问题
- 常用struts标签使用举例--bean篇(转载)
- 深入浅出Liferay Portal (5)
- (轉)无能的WinXP
- 深入浅出Liferay Portal (6)
- 深入浅出Liferay Portal (7)
- 3DGS脚本教程翻译(8)-位置,角度和比例
- 深入浅出Liferay Portal (4)
- 深入浅出Liferay Portal (3)
- C# 下 FtpWebRequest 类的一个小问题
- 常用struts标签使用举例--logic篇 (转载)
- ASP.NET URL Rewrite. URL重写