2013-05-06 93 views
2

正如我們所知,windows CMD可以通過cls.exe命令清除scren。但是我找不到指令位置。windows cls.exe位於何處?

通常,我可以使用which來查找命令程序文件的位置。 但對於cls.exe,它不工作,並顯示爲:

which: no cls in c:\Windows\System32... 

你們能幫助我如何CMD的作品?我在網上搜索,只找到如何使用它的線索。不是自己的作品!

回答

2

它的內置命令爲cmd.exe而不是一個獨立的程序。

cls.exe不存在:

C:\>"cls.exe" 
'"cls.exe"' is not recognized as an internal or external command, 
operable program or batch file. 

C:\>"cls.com" 
'"cls.com"' is not recognized as an internal or external command, 
operable program or batch file. 

C:\>"find.exe" 
FIND: Parameter format not correct 

最後一個,find.exe,只是那裏顯示,當它存在時會發生什麼。

4

沒有cls.exe。 'cls'是內置的CMD.EXE內部。