General Stuffs :)


==================================================

Open Command Prompt in a Folder

If you want to execute a file in any particular folder, open the folder in your Windows Explorer. Hold the Shift key when you right-click in the folder and select Run command window here to directly open the CMD prompt with the path to that folder directly. This makes your life easier particularly if the directory is nested way too deep.


See Command History 

Simply press the F7 button and see a list of last used commands in a session. Alternatively, you can use the command doskey /history to list these commands in the CMD itself.


Copy Commands Output to Clipboard Directly 

To store a command output to a clipboard add the command | clip at the end of the command.


Source: Guiding Tech 

==================================================


Did you know that you can drag and drop files and folders to the command prompt or terminal? It simply auto-completes the path, so you don’t have to type the full thing out or navigate to the right folder. This works in Windows or Mac, and maybe elsewhere. And it couldn’t be simpler. Just drag and drop a file or folder onto the command prompt, and next thing you know you’ll see the full path. It’s probably more useful if you had typed in a command previously, like the “cd” command to change a folder to.



 Thanks to howtogeek :)

==================================================

Role of  "start" in command prompt:

Start
Starts a separate Command Prompt window to run a specified program or command. Used without parameters, start opens a second command prompt window.

Syntax
start ["title"] [/dPath] [/i] [/min] [/max] [{/separate | /shared}] [{/low | /normal | /high | /realtime | /abovenormal | belownormal}] [/wait] [/b] [FileName] [parameters]

Parameters
"title" : Specifies the title to display in Command Prompt window title bar.
/dPath : Specifies the startup directory.
/i : Passes the Cmd.exe startup environment to the new Command Prompt window.
/min : Starts a new minimized Command Prompt window.
/max : Starts a new maximized Command Prompt window.
/separate : Starts 16-bit programs in a separate memory space.
/shared : Starts 16-bit programs in a shared memory space.
/low : Starts an application in the idle priority class.
/normal : Starts an application in the normal priority class.
/high : Starts an application in the high priority class.
/realtime : Starts an application in the realtime priority class.
/abovenormal : Starts an application in the abovenormal priority class.
/belownormal : Starts an application in the belownormal priority class.
/wait : Starts an application and waits for it to end.
/b : Starts an application without opening a new Command Prompt window. CTRL+C handling is ignored unless the application enables CTRL+C processing. Use CTRL+BREAK to interrupt the application.
FileName : Specifies the command or program to start.

parameters : Specifies parameters to pass to the command or program.

Source:http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/start.mspx?mfr=true

==================================================

No comments:

Post a Comment