Tuesday, September 2, 2008

Windows Command Prompt (part 6)

No more words to say, let’s movin..

  • DOSKEY, is a MS-DOS utility that allows a user to keep a history of commands used on the computer. This allows frequently used commands to be used without having to type the commands in each time you need to use it. By default, CMD is automaticly starts doskey, so you can straightly use up or down arrow to displays your command history. There are keyboard shortcut that you can use, press F7 to overview history, F8 to search command history, and “alt” + F7 to clear history

  • ECHO. Echo is used to repeat the text typed in back to the screen and/or can be used to echo to a peripheral on the computer, such as a COM port. Type echo without parameters to show current echo setting.

  • ENDLOCAL. Stops the localization of the environment changes enabled by the setlocal command. Ends localization of environment changes in a batch file. Environment changes made after ENDLOCAL has been issued are not local to the batch file; the previous settings are not restored on termination of the batch file.

    If Command Extensions are enabled ENDLOCAL changes as follows:
    If the corresponding SETLOCAL enable or disabled command extensions using the new ENABLEEXTENSIONS or DISABLEEXTENSIONS options, then after the ENDLOCAL, the enabled/disabled state of command extensions will be restored to what it was prior to the matching SETLOCAL command execution.

  • ERASE. This command is exactly same with DEL, just different name.

  • EXIT. Quits the CMD.exe program (command interpreter) or the current batch script. Just type “exit”, and your cmd will disappear.

  • FC. Or file compare, is used to compare two files against each other. Once completed, fc will return lines which differ between the two files. If no lines differ, you will receive a message indicating no differences encountered. For example:
    fc c:\autoexec.bat c:\config.sys,
    Give a file comparison between the the config.sys and the autoexec.bat in the current directory.
    fc c:\autoexec.bat c:\config.sys /b, Give a file comparison between the the config.sys and the autoexec.bat in the current directory in binary format.

But, I think this command is no use anymore, since we could findout the different between two files from windows explorer.

Related Posts by Categories



0 comments:

Template by - Abdul Munir - 2008