Difference between revisions of "Cmd.exe"

From ReactOS Wiki
Jump to: navigation, search
m
(Replaced content with "{{DISPLAYTITLE:cmd.exe}} {{stub}} {{Code history|base/shell/cmd}} Category:Application")
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/?view=log
+
{{DISPLAYTITLE:cmd.exe}}
 +
{{stub}}
 +
{{Code history|base/shell/cmd}}
  
[[ChangeLog-0.2.1]]
+
[[Category:Application]]
* Show "type" in dir listing ([[Thomas Weidenmueller]])
 
* Fix /p when screen buffer is larger than output window ([[Michael Fritscher]])
 
* Implement /W, /P and /Y options ([[Michael Fritscher]])
 
* Check color passed on command line, make sure foreground and background are not the same ([[Hüseyin Uslu]])
 
 
 
[[ChangeLog-0.2.3]]
 
*Use FormatMessage() to print some error messages ([[Michael Fritscher]])
 
*Fixed handling of variable arguments and free memory allocated by FormatMessage() ([[Michael Fritscher]], [[Thomas Weidenmueller]])
 
*Removed MakeSureDirectoryPathExistsEx ([[Hartmut Birr]])
 
*Use the current directory if GetTempPath fails ([[Hartmut Birr]])
 
*Inherit the handles to the child process (in Execute) ([[Hartmut Birr]])
 
*Assume that the current process is always a console process if ntdll exist but not contains the functions NtQueryInformationProcess or NtReadVirtualMemory ([[Hartmut Birr]])
 
*Fixed the set command for WinXP ([[Hartmut Birr]])
 
*The second parameter must be zero in the call to SetEnvironmentVariable if the variable should be deleted ([[Hartmut Birr]])
 
*Get first the parameters and do then the processing ([[Hartmut Birr]])
 
*CMD Enhancements: ([[Filip Navara]])
 
**Make the DIR /W behave like in Windows ([[Filip Navara]])
 
**Fixed various problems with command input going mad when the screen contents have scrolled ([[Filip Navara]])
 
*Make sure temp directory exist ([[Gunnar Dalsnes]])
 
*'Del *.*' ignores directories, this fixes bug 291 ([[Eric Kohl]])
 
 
 
[[ChangeLog-0.2.4]]
 
* Fixed the compilation as unicode. ([[Hartmut Birr]])
 
* Search only for the file name directly if the name contains a known extension. ([[Hartmut Birr]])
 
* Don't add an extension if the file name contains a known extension. ([[Hartmut Birr]])
 
* Execute any file from command line, myFile.doc starts Word. ([[Jens Collin]])
 
* 'cd' command works correctly with "" ([[Jens Collin]])
 
* Use PATHEXT env. variable to execute files ([[Jens Collin]])
 
* Fix autocompletion ([[Jens Collins]])
 
* Use default PATHEXT if none found in environment ([[Gé van Geldorp]])
 
 
 
[[ChangeLog-0.2.7]]
 
 
 
([[Magnus Olsen]])
 
* Removed all hard-coded strings to their own <code>.rc</code> file
 
* Caches codepage instead of always calling on win32 api for it
 
* Added <code>*.*</code> syntax to <code>dir</code> command
 
* Bugfix: Color now it work as it should
 
* Bugfix: <code>CD "Program Files"<code> now works
 
* Implemented <code>CD s*</code>
 
* Translates <code>%errorlevel%</code> to a value when passed at command line&mdash;now <code>errorlevel</code> is implemented as it should be
 
** left to do: check that all <code>CMD</code> commands are set to the correct value
 
* Fixed a small bug in <code>choice.c</code> so that it prints out choice <code>sadsad</code> correctly
 
* Added <code>%time%</code> and <code>%cd%</code>  internal values (example: <code>echo %cd%</code> or <code>echo %time%</code>)
 
* Added <code>%DATE%</code> (example: <code>echo %date%</code> works now)
 
* Bugfix: <code>date</code> now prints out the names of the days of the week
 
* Added <code>%RANDOM%</code> (for an example of how to use it: <code>echo %random%</code>)
 
* Added <code>%cmdcmdline%</code> (for an example of how to use it: <code>echo %CMDCMDLINE%</code>)
 
* Added <code>%CMDEXTVERSION%</code> (for an example of  how to use it: <code>echo %CMDEXTVERSION%</code>&mdash;the value is hardcoded to 2, because that is the value Microsoft Windows 2000 and Windows XP report) (''thanks to arty for testing this in Windows XP'')
 
* Added quick dirty hack getting our implementation working with <code>1>null</code> by me (''thanks to Hartex and Brandon for hunting down the bug'')
 
 
 
([[Klemens Friedl]])
 
* Added <code>Help</code> command
 
* Added German language resource to the ReactOS Command Processor
 
(not completely finished, I will update it as soon as possible)
 
([mailto:2005only@pianonote.at] [[Martin Rottensteiner]])
 
* Sets <code>errorlevel</code> to <code>9009</code> if command not found
 
* Implemented <code>exit /b #</code> in batch files
 
 
 
([[Brandon Turner]])
 
* Added exclusive deletion (for example: <code>del * -abc.txt -text*.txt</code>)
 
* Fixed bug to allow Microsoft-style wildcards
 
* Code clean up: added <code>/y</code> and <code>/-y</code> in <code>move.c</code>
 
* simple check to fix <code>></code> and <code>|</code> bugs with <code>rem</code>
 
* Implemented <code>/A</code> in <code>delete</code> (for example: <code>del /A:H /A:-R *.exe -ping.exe</code>)
 
* Bugfix: <code>color.c</code> now works similar to Microsoft CMD color
 
* Bugfix: <code>mv foo.txt c:\temp</code> now gives you <code>c:\tempfoo.txt</code>
 

Latest revision as of 14:13, 23 May 2014

The page Cmd.exe is a short article on something that should have a lot more information written on it.
If you know anything else about it, you are STRONGLY encouraged to add the information in. If you are unsure of proper formatting or style, add it to the talk page or this page itself as you think best and others will help.


Commit history (Source code can be found in: /reactos/base/shell/cmd)