Showing posts with label Command Prompt. Show all posts
Showing posts with label Command Prompt. Show all posts

Thursday, December 25, 2014

bench3

How To Copy Text From And Paste Into The Command Prompt

You can copy text from and paste text into the Command Prompt window. The process is a little different depending on how the QuickEdit Mode option is configured.
You configure QuickEdit Mode on the Options tab of the Command Prompt Properties window, shown in Figure 1-6. You can access this window by right-clicking the title bar
of the Command Prompt window and choosing Properties.
The QuickEdit Mode option changes the way that you can cut text from and paste text into the command line. The Insert Mode option below it works just like the Insert key of the keyboard. It allows you to insert characters into the command line when enabled, or overwrite characters in the command line when disabled.
If you want your changes to the Options tab to apply any time the Command Prompt window is open instead of applying only to the current session, right-click the title bar of the Command Prompt window, click Defaults, and then click the Options tab (if it’s not already displayed) and make your changes.
imageFigure: Options Tab of Command Prompt Properties Window
Copy from the Command Prompt Window
How you copy text from the command prompt window depends on whether QuickEdit Mode is enabled or disabled.
If QuickEdit Mode is enabled (checked): Use the mouse to select text, and then press Enter to copy the selected text.
If QuickEdit Mode is not enabled (unchecked): Right-click in the Command Prompt window and click Mark. Use the mouse to select text, and then press Enter to copy the selected text.
Both of these methods copy the text to the Clipboard. You can then paste the text into any other application, such as Notepad or Microsoft Word.
Paste Text into the Command Prompt Window You can paste any text that is on the Clipboard into the command line.
If QuickEdit Mode is enabled (checked): Right-click in the Command Prompt window and the data is pasted where you clicked. Caution: If the pasted data includes a new line from the Enter key, you’ll execute the command as soon as you paste it.
If QuickEdit Mode is not enabled (unchecked): Right-click in the Command Prompt window and click Paste.
If you copy the carriage return with the command, the carriage return will be pasted into the Command Prompt window. In other words, when you paste the command, it will execute.
Read More

Saturday, June 9, 2012

bench3

How To Use CMD When Its Blocked

CMD, which developed from the original command.com is the command interpreter for MS-DOS and is required for the majority of Microsoft's operating systems. Without command.com the computer running a Microsoft operating system would be unable to boot.

When running Windows NT, 2000, XP, or future operating systems there are two versions of the command interpreter, command.com and cmd.exe. Cmd offers additional environment variables than command.com; however, it is recommend if you are attempting to run a MS-DOS utility that you utilize the command.com. To use command.com, click Start, Run, and type command

You can use this trick to enable the command prompt "cmd.exe" when the same is blocked on your PC due to a virus attack or by some privilege. Do you know, cmd is blocked at school /library/Office or just need to nav faster it very easy to use

Method 1(if you want to do something with the CMD, do it here):

  • 1. Open a notepad
  • 2. do what ever command you want to put into CMD
  • 3. Save it as a .bat file
  • 4. launch it!
    Method 2:

Or if you want open CMD, follow these steps

  • 1.open notepad, and type cmd.exe
  • 2.save it as anyname here .bat
  • 3. click that bat file you have CMD.

Done now you cam play with CMD when it is blocked on Computer

Read More

Thursday, March 29, 2012

bench3

Different Ways Of Launching the Command Prompt In Windows 7

Command Prompt (executable name cmd.exe) is the Microsoft-supplied command-line interpreter on OS/2, Windows CE and on Windows NT-based operating systems (including Windows 2000, Windows XP, Vista, Windows 7, Windows Server 2003 and Server 2008). It is the analog of COMMAND.COM in MS-DOS and Windows 9x (where it is called MS-DOS Prompt) systems, or of the Unix shells used on Unix-like systems.

There are several ways you can launch the command prompt within Windows 7:

Click Start, type cmd in the Start Search box, and press Enter.

Choose Start, All Programs, Accessories, Command Prompt.

If Command Prompt is on the Start menu, choose Start, Command Prompt.

The command prompt opens and looks similar to the below screen shot.

Different Ways Of Launching the Command Prompt In Windows 7

Figure: The Command Prompt Window On Windows 7

Read More

Monday, January 16, 2012

bench3

Advantage Of Command Line Interface

Command Line Interface is a mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks. This text-only interface contrasts with the use of a mouse pointer with a graphical user interface (GUI) to click on options, or menus on a text user interface (TUI) to select options.

This method of instructing a computer to perform a given task is referred to as "entering" a command: the system waits for the user to conclude the submitting of the text command by pressing the "Enter" key (a descendant of the "carriage return" key of a typewriter keyboard).

A command-line interpreter then receives, parses, and executes the requested user command. The command-line interpreter may be run in a text terminal or in a terminal emulator window as a remote shell client such as PuTTY. Upon completion, the command usually returns output to the user in the form of text lines on the CLI. This output may be an answer if the command was a question, or otherwise a summary of the operation.

Advantage Of Command Line Interface:

Have you ever noticed in the movies when the “super hacker”—you know, the guy who can break into the ultra-secure military computer in under 30 seconds—sits down at the computer, he never touches a mouse? It’s because movie makers realize that we, as human beings, instinctively know the only way to really get anything done on a computer is by typing on a keyboard.

Advantage Of Command Line Interface2

Most computer users today are familiar with only the graphical user interface (GUI) and have been taught by vendors and pundits that the command line interface (CLI) is a terrifying thing of the past. This is unfortunate, because a good command line interface is a marvelously expressive way of communicating with a computer in much the same way the written word is for human beings. It’s been said that “graphical user interfaces make easy tasks easy, while command line interfaces make difficult tasks possible,” and this is still very true today.

Advantage Of Command Line Interface

Since Linux is modeled after the Unix family of operating systems, it shares the same rich heritage of command line tools as Unix. Unix came into prominence during the early 1980s (although it was first developed a decade earlier), before the widespread adoption of the graphical user interface and, as a result, developed an extensive command line interface instead. In fact, one of the strongest reasons early adopters of Linux chose it over, say, Windows NT was the powerful command line interface, which made the “difficult tasks possible.”

Currently Microsoft released Windows PowerShell, which combined features of traditional Unix shells with their object-oriented .NET Framework.

Advantage Of Command Line Interface

Aldo the latest versions of the Macintosh operating system are based on a variation of Unix called Darwin. On these computers, users can access a Unix-like command-line interface called Terminal found in the Applications Utilities folder.

Read More

Thursday, June 2, 2011

bench3

Does The Command Prompt In Windows Uses DOS Function

Why is this largely DOS oriented file naming convention still in place even in Windows 7. Why not go the UNIX route and avoid tree-corruption in Windows based system by copying of a file with an invalid name.

Well, i f your doubt is what stated above, then you are wrong. Its not the right or  proper terminology. 

First of all, there is no DOS in NT derived versions of Windows.   Nor is it likely that there will ever be a "next version of DOS," at least not from Microsoft.

The Windows command prompt and batch scripting language may resemble DOS but there is no actual DOS code or DOS function calls involved.

When Microsoft enabled long file names in Windows 95 it was done in such a way as to allow backward compatibility with the existing FAT based file system and, to a certain extent, command line syntax.

I would suggest that if you want to use long file names, you need to put them in quotes at the DOS prompt. i.e.- copy “C:\my long filename.txt” C:\filename.txt

Quotes are needed as the command processor would not otherwise be able to tell if a space is part of the file name or a a break preceding (or possibly following) a command line parameter.

It is possible that a future file system could eliminate the underlying 8.3 name and change the command line to assume all characters are part of a file name until a specific delimiter is found, but it seems unlikely.

Read More

Friday, December 31, 2010

bench3

Enable System Protection From Command Line

Swtiched my PC on, and found it wouldn't boot, crashing during bootup, with a brief flash of a blue-screen message. Is there a way to enable the system protection of the drive C (where the OS is instalated), from the command prompt option, that is available under the system recovery.?
My real problem is that when I start the system restore option, just after the selection of the restore selection point, when Its the time to confirm the disk to restore, it says "You must enable system restore protection on this drive"!!! and I cannot do it!!
Now, how do we activate the system protection. And how can we do it from a command line? Just its not even possible to boot in safe mode. As booting in safemode also crashes on startup.

Solution:
Put the following commands into Powershell file and add Powershell task at the end, if you use Microsoft Deployment Toolkit (MDT).

enable-computerrestore -drive "c:\"
vssadmin resize shadowstorage /on=c: /for=c: /maxsize=5%
checkpoint-computer -description "Done"

Note:
PS is PowerShell.
MDT is Microsoft Deployment Toolkit 2010.
Read More