|
| |||||||||
| Tags: command prompt, dos, ms dos, windows xp, y disabled dos |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Need Basic Dos commands for Commands prompt
Hi, My windows XP pro is not working anymore from desktop i can not run any command I tried to open command prompt & i got it on the screen but now I don't know the basic commands to move or cut+pest or copy+pest my important files from C drive to other drive ie. D drive. I want to know the basic commands to move or copy files from one drive to other through command prompt. One more thing that I noticed is when I type dir command I get the files information but it also says there is no label found what this means? |
|
#2
| |||
| |||
| Re: Need Basic Dos commands for Commands prompt
You can use these commands! BACKUP (External) BACKUP d:[path][filename] d:[/S][/M][/A][/F size)] [/P][/D:date] [/T:time] [/L:[path]filename]Makes a backup copy of one or more files. (In DOS Version 6, this program is stored on the DOS supplemental disk.) CHKDSK (External) CHKDSK [d:][path][filename] [/F][/V] Checks a disk and provides a file and memory status report. COMMAND (External) COMMAND [d:][path] [device] [/P][/E size)] [/MSG][/Y [/C (command)|/K (command)]Starts a new version of the DOS command processor (the program that loads the DOS Internal programs). COPY (Internal) COPY [/Y|-Y] [/A][/b] [d:][path]filename [/A][/b] [d:][path][filename] [/V] or COPY [/Y|-Y][/A][/b] [d:][path]filename+[d:][path]filename[...][d:][path][filename] [/V] Copies and appends files. |
|
#3
| |||
| |||
| Re: Need Basic Dos commands for Commands prompt
COPY Command The COPY command can be used both to copy files from disk to disk or to create a second copy of a file on a single disk. (There are many more uses of the COPY command, but only the basic operation is discussed here.) Example: * C> copy c:kermit.exe a: * Copies the file 'KERMIT.EXE' from the C drive to the A drive and gives it the same name. * C> copy a:brazil1.dat b:\south\brazil2.dat * Creates a copy of 'BRAZIL1.DAT' from drive A on drive B, putting it in the 'SOUTH' subdirectory and renaming it 'BRAZIL2.DAT'. The key to use this command correctly is to remember that the first file specified after the COPY command is the source file, the second is the target:ehp1 file. The source is the file to be copied. The target will be the location and name of the new file. If the file name and extension are omitted after the target's drive specification, the new file will have exactly the same name as the source file. Example: * C> copy a:myfile.txt b: * C> copy c:command.com b:com.com * C> copy b:golly.gee a:whao.boy * C> copy command.* a: * C> copy a:mymap.dwg c:\maps Note: it is always good practice to us the complete file specifications for both source and target files, Be very sure of yourself before you accept defaults or employ wild-card characters. Otherwise you may end up with some interesting results. Incomplete or incorrect source names may result in errors, such as the command: copy edlin a:myomy.bat. Try it and see what happens. |
|
#4
| |||
| |||
| Re: Need Basic Dos commands for Commands prompt Copy Something To copy a files or directories in DOS, it is necessary to use the "copy" command. The default drive indicated in the DOS propmpt is of no concern when copying an item. Files or folders may be copied from anywhere to anywhere, regardless of the prompt drive. For example, to copy the file, "pacman.exe" from the directory "D:\arcade" to the directory "C:\programs" (notice that the location indicated for the DOS prompt is different from both the source directory and the copy directory): C:\different\> copy D:\arcade\pacman.exe C:\programs [enter] Here, we repeat the previous copy command, while simultaneously renaming the file to "ms-pacman.exe": C:\different\> copy D:\arcade\pacman.exe C:\programs\ms-pacman.exe [enter] The copy command may be generalized as follows: [prompt location]\> copy [source item] [target location][\optional rename] [enter] Erase Something To delete an item, use the deadly "erase" command. For example, if you want to delete the file, "terminated.jpg", located on the Y drive: X:\> erase Y:terminated.jpg [enter] To delete a file within the directory indicated in the DOS prompt, no additional directory information is needed: X:\> erase terminated.jpg [enter] If you would like to erase all of the contents of a directory, say, Y: X:\> erase Y:*.* [enter] Format Something To format a drive, use the "format" command. Formatting a disk involves error checking and directory creation. For example, if you want to format the floppy disk in drive A (note: disk formatting requires user input regarding several options presented during the process): X:\> format A: [enter] Create a Directory To create a new directory, use the "mkdir" command. For example, to create a directory called "rygar" within the Y:\arcade directory: X:\> mkdir Y:\arcade:rygar [enter] This is even easier if you wish to create a directory within the current directory (i.e., the directory listed in the DOS prompt). For example, to create a rygar directory within the Y:\arcade directory while in Y:\arcade: Y:\arcade> mkdir rygar [enter] |
|
#5
| |||
| |||
| Re: Need Basic Dos commands for Commands prompt
ASSOC Displays or modifies file extension associations. AT Schedules commands and programs to run on a computer. ATTRIB Displays or changes file attributes. BREAK Sets or clears extended CTRL+C checking. CACLS Displays or modifies access control lists (ACLs) of files. CALL Calls one batch program from another. CD Displays the name of or changes the current directory. CHCP Displays or sets the active code page number. CHDIR Displays the name of or changes the current directory. CHKDSK Checks a disk and displays a status report. CHKNTFS Displays or modifies the checking of disk at boot time. CLS Clears the screen. CMD Starts a new instance of the Windows command interpreter. COLOR Sets the default console foreground and background colors. COMP Compares the contents of two files or sets of files. COMPACT Displays or alters the compression of files on NTFS partitions. CONVERT Converts FAT volumes to NTFS. You cannot convert the current drive. COPY Copies one or more files to another location. DATE Displays or sets the date. DEL Deletes one or more files. DIR Displays a list of files and subdirectories in a directory. DISKCOMP Compares the contents of two floppy disks. DISKCOPY Copies the contents of one floppy disk to another. DOSKEY Edits command lines, recalls Windows commands, and creates macros. ECHO Displays messages, or turns command echoing on or off. ENDLOCAL Ends localization of environment changes in a batch file. ERASE Deletes one or more files. EXIT Quits the CMD.EXE program (command interpreter). FC Compares two files or sets of files, and displays the differences between them. FIND Searches for a text string in a file or files. FINDSTR Searches for strings in files. FOR Runs a specified command for each file in a set of files. FORMAT Formats a disk for use with Windows. FTYPE Displays or modifies file types used in file extension associations. GOTO Directs the Windows command interpreter to a labeled line in a batch program. GRAFTABL Enables Windows to display an extended character set in graphics mode. HELP Provides Help information for Windows commands. IF Performs conditional processing in batch programs. LABEL Creates, changes, or deletes the volume label of a disk. MD Creates a directory. MKDIR Creates a directory. MODE Configures a system device. MORE Displays output one screen at a time. MOVE Moves one or more files from one directory to another directory. PATH Displays or sets a search path for executable files. PAUSE Suspends processing of a batch file and displays a message. POPD Restores the previous value of the current directory saved by PUSHD. Prints a text file. PROMPT Changes the Windows command prompt. PUSHD Saves the current directory then changes it. RD Removes a directory. RECOVER Recovers readable information from a bad or defective disk. REM Records comments (remarks) in batch files or CONFIG.SYS. REN Renames a file or files. RENAME Renames a file or files. REPLACE Replaces files. RMDIR Removes a directory. SET Displays, sets, or removes Windows environment variables. SETLOCAL Begins localization of environment changes in a batch file. SHIFT Shifts the position of replaceable parameters in batch files. SORT Sorts input. START Starts a separate window to run a specified program or command. SUBST Associates a path with a drive letter. TIME Displays or sets the system time. TITLE Sets the window title for a CMD.EXE session. TREE Graphically displays the directory structure of a drive or path. TYPE Displays the contents of a text file. VER Displays the Windows version. VERIFY Tells Windows whether to verify that your files are written correctly to a disk. VOL Displays a disk volume label and serial number. XCOPY Copies files and directory trees. |
|
#6
| |||
| |||
| Re: Need Basic Dos commands for Commands prompt
@Rudra.J Looking for commands for START->RUN->eg,regedit,........................(needs for different functions) |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Need Basic Dos commands for Commands prompt" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cannot Use AD Commands in Command Prompt | Frank McElrath | Active Directory | 2 | 15-05-2010 06:26 PM |
| List of commands for command prompt | Sonam Goenka | Operating Systems | 6 | 16-01-2010 10:50 AM |
| CMD Prompt unable to recognizing commands | JAMIN | Operating Systems | 4 | 23-04-2009 10:22 AM |
| Linux Basic Commands | Solomon | Operating Systems | 5 | 30-01-2009 02:20 PM |
| Dos Commands not working from cmd Prompt | Tarun | Vista Help | 11 | 17-10-2008 12:53 AM |