Difference between revisions of "Cmd.exe"

From ReactOS Wiki
Jump to: navigation, search
m (Replaced content with "<div id="changelog" data-rss="base/shell/cmd/"></div> Category:BNWIP")
m (Reverted edits by Zehnvor (talk) to last revision by BrentNewland)
Line 1: Line 1:
<div id="changelog" data-rss="base/shell/cmd/"></div>
+
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/?view=log
 +
 
 +
[[ChangeLog-0.2.1]]
 +
* 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>
 +
 
 +
[[ChangeLog-0.2.8]]
 +
 
 +
* Fixed a bug in IsConsoleHandle. ([[Hartmut Birr]])
 +
* Speed Optimize the delete command. ([[Hartmut Birr]])
 +
* Fixed the allocation of the buffer for the environment variable in ProcessInput. ([[Hartmut Birr]])
 +
* Restore console title after running a command ([[Gé van Geldorp]])
 +
* Complete copy command rewrite to include all features of MS CMD. ([[Brandon Turner]])
 +
* CD rewrite and support paths on different drives. ([[Brandon Turner]])
 +
* Implemented /P in dir for paging. ([[Brandon Turner]])
 +
* Implemented ConOutResPaging. ([[Brandon Turner]])
 +
* Implemented Windows style tab complete. ([[Brandon Turner]])
 +
* Changed the way start and execute parse the file name to allow ".  Bug #690 ([[Brandon Turner]])
 +
* Implemented batch file redirection. ([[Brandon Turner]])
 +
* Make sure the path displayed by $P is the correct case. ([[Brandon Turner]])
 +
* Implemented better handling of escape char ^. ([[Brandon Turner]])
 +
* Implemented the proper useage of %PROMPT%.  ([[Brandon Turner]])
 +
* Fixed del allow same features as MS CMD.  ([[Brandon Turner]])
 +
* Fixed dir *. it only show folders ([[Magnus Olsen]])
 +
* Fixed bug 739 in bugzila, can not create file notepad newfile.txt at cmd prompt ([[Magnus Olsen]])
 +
* Fixed type can handler \n at text output thx ravelo for the small patch.
 +
* Do not crash if the prompt command name are binger that 260char or the command line. ([[Magnus Olsen]])
 +
* Fixed bug in searching for bat/cmd files ([[Magnus Olsen]])
 +
* Implement start execute support for bat/cmd file. woking in windows ([[Magnus Olsen]])
 +
* lemented "" remove for the start command.  This makes 'start dir1\"dir2a dir2b"\dir3\foo.exe param' work change by [[Martin Rottensteiner]] 2005only@pianonote.at irc nick ravelo
 +
* Fixed bug in date if the input arg are not right dateformat, it should promt after new date. ([[Magnus Olsen]])
 +
* Fixed more cmd goto bugs. found labels bugs, and search label bugs, param bugs. now it should work fine ([[Magnus Olsen]])
 +
* Make CMD rember startpath when you change from start drive to another drive. ([[Magnus Olsen]])
 +
* Fixed pipe bugs ([[Magnus Olsen]])
 +
* Fixed all bugs in cmd commands cd, make it rember the last directory for each drive. make c: working, make cd f f working. We can not found any more bugs cd rewriting was done by BrandonTurner and me, Brandon rewrite cmd_chdir and I add two functions that we will use for cd and other commands to get and set current drive path. The /D are also implement in CD ([[Magnus Olsen]])
 +
* Add environment variable COPYCMD to copy  ([[Magnus Olsen]])
 +
 
 +
[[ChangeLog-0.2.9]]
 +
 
 +
* Remove all differences between compilation when __REACTOS__ is and isnt defined. ([[Brandon Turner]])
 +
* Fixed all compilation errors in "activate" and a bug to not allow it to find some windows. ([[Brandon Turner]])
 +
* Allow "exit" to print its help text. ([[Brandon Turner]])
 +
* Replace hack to get correct path casing with correct implemnatation. ([[Brandon Turner]])
 +
* Dir formatting changes. ([[Brandon Turner]])
 +
* Change over some long texts to paging. ([[Brandon Turner]])
 +
* Correctly implement Control Handler to cancel line input, message child process, and set the breaker for internal commands. ([[Brandon Turner]])
 +
* Fix the return of not found envirnmental variables. ([[Brandon Turner]])
 +
* Make all directories in a path that do not already exist for "mkdir". ([[Brandon Turner]])
 +
* ^M executes the current input. ([[Brandon Turner]])
 +
* Fix continuous repaint ([[Gé van Geldorp]])
 +
 
 +
[[ChangeLog-0.3.0]]
 +
 
 +
 
 +
* CMD Alexander Wurzinger(Lohnegrim)' E-Mail 'Lohnegrim@gmx.net'  fix follow bugs Commend "'type/p','dir/p','dir/s','dir/p/s' did not work with CTRL+C"\n"'pause' does not continue until you press Ctrl/Shift/Alt"
 +
* CMD Fix Bug 1217 with patch from bugzila by  ravelo  "If you type > or < in cmd and hit ENTER, cmd.exe crashes" commited by  ([[Magnus Olsen]])
 +
* fix cmd build with MSVC 2005  ([[Magnus Olsen]])
 +
* Start of Console Window Property Configuration (console.dll) ([[Johannes Anderwald]])
 +
* CMD : Stop the footer from printing twice in 'dir'.  Fixes 1084. ([[Brandon Turner]])
 +
* CMD : Correctly handle malformed cmd input strings.  Fixes a buffer overflow which caused many problems. ([[Brandon Turner]])
 +
* CMD : Implement Tab completion with " in the path. Fixes bug 1238. ([[Brandon Turner]])
 +
 
 +
[[ChangeLog-0.3.3]]
 +
* Fix a memory leak ([[Timo Kreuzer]])
 +
* Fixed a bug in mkdir command ([[Hervé Poussineau]], [[Pierre Schweitzer]], bug #2216)
 +
* Added the missing "help <command>" functionality ([[Pierre Schweitzer]], bug #2406)
 +
* Bugfix: The fix does a WriteFile per line insted of one per char. ([[Paolo Devoti]], bug #2015)
 +
* Removed variables formerly in use to handle pagination. Pagination belongs to ConOutPrintfPaging. Removed already commented out code of old pagination ([[Paolo Devoti]], bug #2016)
 +
* Fix the Cmd build, when compilation units are turned off ([[Colin Finck]])
 +
* Various fixes ([[Carlo Bramini]], bug #2232)
 +
 
 
[[Category:BNWIP]]
 
[[Category:BNWIP]]

Revision as of 07:31, 19 April 2013

http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/?view=log

ChangeLog-0.2.1

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 .rc file
  • Caches codepage instead of always calling on win32 api for it
  • Added *.* syntax to dir command
  • Bugfix: Color now it work as it should
  • Bugfix: CD "Program Files" now works
  • Implemented CD s*
  • Translates %errorlevel% to a value when passed at command line—now errorlevel is implemented as it should be
    • left to do: check that all CMD commands are set to the correct value
  • Fixed a small bug in choice.c so that it prints out choice sadsad correctly
  • Added %time% and %cd% internal values (example: echo %cd% or echo %time%)
  • Added %DATE% (example: echo %date% works now)
  • Bugfix: date now prints out the names of the days of the week
  • Added %RANDOM% (for an example of how to use it: echo %random%)
  • Added %cmdcmdline% (for an example of how to use it: echo %CMDCMDLINE%)
  • Added %CMDEXTVERSION% (for an example of how to use it: echo %CMDEXTVERSION%—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 1>null by me (thanks to Hartex and Brandon for hunting down the bug)

(Klemens Friedl)

  • Added Help command
  • Added German language resource to the ReactOS Command Processor

(not completely finished, I will update it as soon as possible) ([1] Martin Rottensteiner)

  • Sets errorlevel to 9009 if command not found
  • Implemented exit /b # in batch files

(Brandon Turner)

  • Added exclusive deletion (for example: del * -abc.txt -text*.txt)
  • Fixed bug to allow Microsoft-style wildcards
  • Code clean up: added /y and /-y in move.c
  • simple check to fix > and | bugs with rem
  • Implemented /A in delete (for example: del /A:H /A:-R *.exe -ping.exe)
  • Bugfix: color.c now works similar to Microsoft CMD color
  • Bugfix: mv foo.txt c:\temp now gives you c:\tempfoo.txt

ChangeLog-0.2.8

  • Fixed a bug in IsConsoleHandle. (Hartmut Birr)
  • Speed Optimize the delete command. (Hartmut Birr)
  • Fixed the allocation of the buffer for the environment variable in ProcessInput. (Hartmut Birr)
  • Restore console title after running a command (Gé van Geldorp)
  • Complete copy command rewrite to include all features of MS CMD. (Brandon Turner)
  • CD rewrite and support paths on different drives. (Brandon Turner)
  • Implemented /P in dir for paging. (Brandon Turner)
  • Implemented ConOutResPaging. (Brandon Turner)
  • Implemented Windows style tab complete. (Brandon Turner)
  • Changed the way start and execute parse the file name to allow ". Bug #690 (Brandon Turner)
  • Implemented batch file redirection. (Brandon Turner)
  • Make sure the path displayed by $P is the correct case. (Brandon Turner)
  • Implemented better handling of escape char ^. (Brandon Turner)
  • Implemented the proper useage of %PROMPT%. (Brandon Turner)
  • Fixed del allow same features as MS CMD. (Brandon Turner)
  • Fixed dir *. it only show folders (Magnus Olsen)
  • Fixed bug 739 in bugzila, can not create file notepad newfile.txt at cmd prompt (Magnus Olsen)
  • Fixed type can handler \n at text output thx ravelo for the small patch.
  • Do not crash if the prompt command name are binger that 260char or the command line. (Magnus Olsen)
  • Fixed bug in searching for bat/cmd files (Magnus Olsen)
  • Implement start execute support for bat/cmd file. woking in windows (Magnus Olsen)
  • lemented "" remove for the start command. This makes 'start dir1\"dir2a dir2b"\dir3\foo.exe param' work change by Martin Rottensteiner 2005only@pianonote.at irc nick ravelo
  • Fixed bug in date if the input arg are not right dateformat, it should promt after new date. (Magnus Olsen)
  • Fixed more cmd goto bugs. found labels bugs, and search label bugs, param bugs. now it should work fine (Magnus Olsen)
  • Make CMD rember startpath when you change from start drive to another drive. (Magnus Olsen)
  • Fixed pipe bugs (Magnus Olsen)
  • Fixed all bugs in cmd commands cd, make it rember the last directory for each drive. make c: working, make cd f f working. We can not found any more bugs cd rewriting was done by BrandonTurner and me, Brandon rewrite cmd_chdir and I add two functions that we will use for cd and other commands to get and set current drive path. The /D are also implement in CD (Magnus Olsen)
  • Add environment variable COPYCMD to copy (Magnus Olsen)

ChangeLog-0.2.9

  • Remove all differences between compilation when __REACTOS__ is and isnt defined. (Brandon Turner)
  • Fixed all compilation errors in "activate" and a bug to not allow it to find some windows. (Brandon Turner)
  • Allow "exit" to print its help text. (Brandon Turner)
  • Replace hack to get correct path casing with correct implemnatation. (Brandon Turner)
  • Dir formatting changes. (Brandon Turner)
  • Change over some long texts to paging. (Brandon Turner)
  • Correctly implement Control Handler to cancel line input, message child process, and set the breaker for internal commands. (Brandon Turner)
  • Fix the return of not found envirnmental variables. (Brandon Turner)
  • Make all directories in a path that do not already exist for "mkdir". (Brandon Turner)
  • ^M executes the current input. (Brandon Turner)
  • Fix continuous repaint (Gé van Geldorp)

ChangeLog-0.3.0


  • CMD Alexander Wurzinger(Lohnegrim)' E-Mail 'Lohnegrim@gmx.net' fix follow bugs Commend "'type/p','dir/p','dir/s','dir/p/s' did not work with CTRL+C"\n"'pause' does not continue until you press Ctrl/Shift/Alt"
  • CMD Fix Bug 1217 with patch from bugzila by ravelo "If you type > or < in cmd and hit ENTER, cmd.exe crashes" commited by (Magnus Olsen)
  • fix cmd build with MSVC 2005 (Magnus Olsen)
  • Start of Console Window Property Configuration (console.dll) (Johannes Anderwald)
  • CMD : Stop the footer from printing twice in 'dir'. Fixes 1084. (Brandon Turner)
  • CMD : Correctly handle malformed cmd input strings. Fixes a buffer overflow which caused many problems. (Brandon Turner)
  • CMD : Implement Tab completion with " in the path. Fixes bug 1238. (Brandon Turner)

ChangeLog-0.3.3

  • Fix a memory leak (Timo Kreuzer)
  • Fixed a bug in mkdir command (Hervé Poussineau, Pierre Schweitzer, bug #2216)
  • Added the missing "help <command>" functionality (Pierre Schweitzer, bug #2406)
  • Bugfix: The fix does a WriteFile per line insted of one per char. (Paolo Devoti, bug #2015)
  • Removed variables formerly in use to handle pagination. Pagination belongs to ConOutPrintfPaging. Removed already commented out code of old pagination (Paolo Devoti, bug #2016)
  • Fix the Cmd build, when compilation units are turned off (Colin Finck)
  • Various fixes (Carlo Bramini, bug #2232)