Running programs from the console

Source: Internet
Author: User

Start the program through the console and do something cmd.exe is a Windows-based command interpreter for Microsoft Windows, similar to Microsoft's DOS operating system. Cmd.exe is a 32-bit command-line program that runs on Windows nt/2000/xp/2003/vista/win7. This is not purely a system program, but if you delete it, it can cause an unknown problem. Here is the specific situation click Windows, enter cmd in the file search, pop up the console interface, the following is the relevant operation in the console interface. Microsoft Windows [version 6.1.7601] Copyright (c) Microsoft Corporation. All rights reserved. C:\USERS\ADMINISTRATOR>CD. C:\USERS>CD. C:\>CD. C:\>c:c:\>d:d:\>dir the volume in drive D is the serial number of the software volume is 000e-12a7 d:\ Directory of 2015/09/06 08:09 360DOWNLOADS2015/11/19 12:00 360 Secure Browser Download 2015/07/15 09:03 360 Drive Master Catalog 2015/11/18 22:34 HSSTS2015/10/15 20:48 Kugou2015/10/07 10:25 Program FILES2015/11/18 17:47 Program Files (x86) 0 files 0 bytes 7 directories 77,584,969,728 Available Bytes D:\>progeam files (x86) ' Progeam ' are not internal or external commands and are not executable or batch files. D:\>progeam files ' Progeam ' is not an internal or external command, nor is it a program or batch file that can be run. D:\>program Files ' program ' is not an internal or external command, nor is it a executable or batch file. D:\>CD Program Filesd:\program Files>dir the volume in drive D is the serial number of the software volume is the directory of 000e-12a7 D:\Program Files 2015/10/07 10:25 .2015/10/07 10:25 .. 2015/10/07 10:25 3602014/12/30 08:39 360IE2015/04/20 08:32 ALIWANGWANG2014/09/13 14:48 DREAMWEAVER2014/09/12 21:00 Foxit SOFTWARE2014/12/22 19:56 KUGO2014/09/13 18:12 Meitu2015/10/07 15:55 QQ2015/08/14 22:15 QQPLAYER2015/04/12 07:47 SOGOUEXPLORER2015/10/17 19:47 SOGOUPINYIN2014/09/13 08:33 SOGOUWALLPAPER2015/07/15 16:56 WPS 0 Files 0 bytes 15 directories 77,584,969,728 free bytes D:\Program FILES>CD kugod:\program files\kugo>dir The volume in drive D is the software volume serial number is 000E -12a7 D:\Program Files\kugo 2014/12/22 19:56 .2014/12/22 19:56 .. 2014/12/22 19:57 Kgmusic Compact version 2014/12/04 17:45 11,844,336 kugou7660.exe 1 files 11,844,336 bytes 3 directories 77,584,969,728 Available Bytes D:\Program files\kugo> Kugou7660.exe help Scriptd:\program Files\kugo>kugou7660.exe helpd:\program files\kugo>kugou7660.exed:\ Program Files\kugo>kgmusic Concise Edition ' Kgmusic Lite ' is not an internal or external command, nor is it a executable or batch file. D:\Program files\kugo>cdd:\program files\kugod:\program Files\kugo>cdd:\program files\kugod:\program Files\ KUGO>CD: The file name, directory name, or volume label method is incorrect. D:\Program FILES\KUGO>CD. The volume in D:\Program files>dir drive D is the serial number of the software volume is the directory of 000e-12a7 D:\Program Files 2015/10/07 10:25 .2015/10/07 10:25 .. 2015/10/07 10:25 3602014/12/30 08:39 360IE2015/04/20 08:32 ALIWANGWANG2014/09/13 14:48 DREAMWEAVER2014/09/12 21:00 Foxit SOFTWARE2014/12/22 19:56 KUGO2014/09/13 18:12 Meitu2015/10/07 15:55 QQ2015/08/14 22:15 QQPLAYER2015/04/12 07:47 SOGOUEXPLORER2015/10/17 19:47 SOGOUPINYIN2014/09/13 08:33 SOGOUWALLPAPER2015/07/15 16:56 WPS 0 Files 0 bytes 15 directories 77,584,969,728 Available Bytes D:\Program files>cd sogouexplorerd:\program Files\sogouexplorer>dir Drive D The volume is the serial number of the software volume is the directory of 000e-12a7 D:\Program files\sogouexplorer 2015/04/12 07:47 .2015/04/12 07:47 .. 2015/01/19 19:01 5.0.10.156272015/01/19 19:01 418 Installlog.log2015/01/19 19:01 SEVERSTORAGE2015/01/19 19:01 467,048 sogouexplorer.exe2015/01/19 19:01 75,368 wow_helper.exe 3 files 542,834 bytes 4 directories 77,584 , 969,728 bytes available D:\Program files\sogouexplorer>sogouexplorer.exed:\program files\sogouexplorer>=============== ==================================================== then the D:\Program Files\sogouexplorer>c:c:\>dir drive C above The volume in is not labeled. The serial number of the volume is 4a1b-4a45 c \ Directory of 2015/07/16 20:47 Program FILES2015/11/10 11:24 Program Files (x86) 2015/04/17 17:54 Users2015/10/31 21:51 435,167 Wifi_log.txt2015/11/19 12:01 Windows 1 files 435,167 bytes 4 directories 9,963,245,568 Available Bytes c:\>wifi_log.txtc:\>=========================================== The =========================== is mainly 1.cd above. Return to the previous level of directory 2.cd XXXX into the xxx folder (or into the directory, folder is customary), if XXX is a file or program (they can be collectively referred to as files, it appears that in the console display only two files and directories), will directly run or open 3. " 2015/10/31 21:51 435,167 Wifi_log.txt "This line of information is" Update Time "," File Size "," filename "4." The volume in C:\>dir drive C is not labeled. The serial number of the volume is 4a1b-4a45 c \ Directory of 2015/07/16 20:47 Program FILES2015/11/10 11:24 Program Files (x86) 2015/04/17 17:54 Users2015/10/31 21:51 435,167 Wifi_log.txt2015/11/19 12:01 Windows 1 files 435,167 bytes 4 directories 9,963,245,568 Available Bytes "This piece of information is" disk number "," Disk name "," Disk serial number "," The directory of this layer "," related statistics of files and directories "; This representation can also be entered into its subdirectory. 5.C: Swap (Swap the disk to enter) Eg:d:\program files\sogouexplorer>c:c:\>6. Auto-complement all characters in the way tab, case no difference (I don't see the difference, Looks like it will automatically match the catalog and replace it) 7. Once into the multi-level directory, the auto-completion in the second layer will start to fail 8. Directories containing Chinese do not go to 9. Directory to switch back again is the place to switch out or when the 10. " D:\Program files\kugo>kugou7660.exe help Scriptd:\program files\kugo>kugou7660.exe helpd:\program Files\Kugo >kugou7660.exe "This is what, in fact, I want to query the use of this program, unfortunately, the failure of the" D:\Program files\kugo>kugou7660 help Script " The result of this change is a failure supplement: Microsoft Windows [version 6.1.7601] Copyright (c) Microsoft Corporation. All rights reserved. C:\USERS\ADMINISTRATOR>CMD/C Help for more information about a command, type the assoc command name to display or modify the file extension association. ATTRIB Display or change file properties. Break sets or clears the extended CTRL + C check. BCDEDIT set the properties in the startup database to control the boot load. CACLS displays or modifies the Access Control List (ACL) of the file. Call calls this one from another batch program. The CD displays the name of the current directory or changes it. CHCP Displays or sets the number of active code pages. CHDIR displays the name of the current directory or changes it. CHKDSK checks the disk and displays the status report. CHKNTFS Displays or modifies the startup time disk check. CLS clears the screen. CMD opens another Windows command interpreter window. Color sets the default console foreground and background color. COMP compares the contents of two or two sets of files. Compact displays or changes the compression of files on NTFS partitions. Convert converts a FAT volume to NTFS. You cannot convert the current drive. Copy copies at least one of the files to another location. Date Displays or sets dates. DEL deletes at least one file. DIR displays the files and subdirectories in a directory. DISKCOMP ratioMore than two floppy disk contents. DISKCOPY Copy the contents of one floppy disk to another. DISKPART displays or configures disk partition properties. DOSKEY Edit the command line, invoke the Windows command, and create a macro. Driverquery Displays the current device driver status and properties. echo Displays the message, or turns the command back on or off. Endlocal to end localization of environment changes in batch files. ERASE Delete one or more files. Exit CMD. EXE Program (command interpreter). FC compares two files or two sets of files and displays the differences between them. Find searches one or more files for a text string. FINDSTR searches for strings in multiple files. For each file in a set of files, run a specified command. Format formats the disk for use with Windows. FSUTIL displays or configures the properties of the file system. FTYPE displays or modifies the file types that are associated with the file name extension. GOTO points The Windows command interpreter to a labeled row in the batch program. GPRESULT Displays Group Policy information for the machine or user. GRAFTABL enable Windows to display the extended character set in graphics mode. Help provides information about Windows commands. ICACLS displays, modifies, backs up, or restores ACLs for files and directories. IF a conditional process is performed in a batch program. Label creates, changes, or deletes a disk's volume label. MD to create a directory. MKDIR Create a directory. MKLINK Create Symbolic links and hard links mode to configure system devices. More display output per screen. Move moves one or more files from one directory to another. OPENFILES displays files opened by remote users for file sharing. Path displays or sets the search path for the executable file. Pause stops processing of the batch file and displays information. POPD restores the previous value of the current directory saved by PUSHD. Print prints a text file. PROMPT Change Windows command prompt. PUSHD Save the current directory and make changes to it. RD Delete directory. The RECOVER recovers readable information from the damaged disk. REM records batch files or CONFIG. The comment in SYS. REN renames the file. RENAME Rename the file. Replace replaces the file. RMDIR Delete the directory. ROBOCOPY the Advanced utility set to copy files and the directory tree displays, sets, or removes Windows environment variables. SETLOCAL began to change the localization of the environment with batch files. ScDisplays or configures the service (background processing). SCHTASKS schedule commands and programs to run on a single computer as scheduled. SHIFT adjusts the position of replaceable parameters in the batch file. SHUTDOWN allow the machine to shut down properly locally or remotely. Sort sorts the inputs. START opens a separate window to run the specified program or command. SUBST associates the drive letter with the path. SYSTEMINFO displays the specific properties and configuration of the machine. TASKLIST displays all currently running tasks that include the service. TASKKILL terminates a running process or application. Time displays or sets the system times. The TITLE sets CMD. The window caption of the EXE session. Tree displays the directory structure of the initiator or path graphically. TYPE Displays the contents of the text file. VER shows the version of Windows. VERIFY tells Windows to verify that the file is written to disk correctly. VOL Displays the disk volume label and serial number. XCOPY copies files and directory trees. WMIC displays WMI information in an interactive command shell. For more information about tools, see the command-line reference in the online Help. C:\users\administrator>help//function as above, no matter which disk can achieve the ======================================== demarcation line ================= =========================== Baidu Check "Windows+r" and "cmd" difference first to know that the running window is actually running the system folder files. This makes a difference, and cmd is divided into external commands and internal commands. Internal commands are cmd-brought commands, for example, pause is an internal command, and when you enter pause in the Run window, you are prompted not to find the file because the pause file does not exist on your computer. But when you type: cmd/c pause is able to execute, because the system knows to run CMD and then pass the back as a parameter to CMD, which is executed by CMD. External commands, as the name implies, external command programs outside of CMD, are separate applications, for example, Your search in Windows folder can find Shutdown.exe this file, in fact, cmd in the execution of this external command, just run the file, but it is to pass the parameters behind it. You create a new shortcut to the file, and the path followed by the qualified parameters is also able to execute. So external commands can be executed in the Run window. You can enter help in CMD to view internal commands. Because of the characteristics of external commands, external commands can be expanded, so long as you write a program that supports parameter passing, you can put it in the system folder andCalled with CMD.

Running programs from the console

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.