+ All Categories
Home > Documents > Dos Commands Practical File

Dos Commands Practical File

Date post: 18-Nov-2014
Category:
Upload: sunil-kumar
View: 103 times
Download: 0 times
Share this document with a friend
Description:
Practical file for Computer Subject
19
Adharshila College Of Education Practical File for Dos Commands Submitted By – Sunil Kumar
Transcript
Page 1: Dos Commands Practical File

Adharshila CollegeOf

EducationPractical File

forDos Commands

Submitted By – Sunil Kumar

Dos CommandsDirectory Command

Page 2: Dos Commands Practical File

C:\>dir Volume in drive C is Window's XP Volume Serial Number is 7853-61EC

Directory of C:\

11/27/2009 06:00 PM 0 AUTOEXEC.BAT11/27/2009 06:00 PM 0 CONFIG.SYS11/27/2009 07:21 PM <DIR> Documents and Settings11/28/2009 09:38 AM <DIR> Program Files11/28/2009 09:38 AM <DIR> WINDOWS 2 File(s) 0 bytes 3 Dir(s) 35,456,897,024 bytes free

Directory Command with width wiseD:\>dir/w Volume in drive D is Mega Bite Volume Serial Number is E489-D80E

Directory of D:\

08102009.jpg08102009_002.jpg[Audio][English Mix 2][English Mp3][hip hop][Hip Hop Song]Michael Jackson - Off The Wall (1979) (mrsjs).torrentMICHAEL JACKSON - King Of Pop [Australian Edition][Bubanee].torrent[MJ][Movies][My Folder][New Folder][newwewew][NFSMW-MINI]Pankaj Udhas - Kitni Yaad Aati Hai.mp4[Pappu][pooo][RAJPAT][simple mehndi][Softwares][Torrent][Videos][windonew]Windows 7 x86 with Activation Crack torrent torrent rocks Rapidshare Downloads - Freshwap_Net.htm[Windows 7 x86 with Activation Crack torrent torrent rocks Rapidshare Downloads- Freshwap_Net_files] 6 File(s) 12,966,935 bytes

Page 3: Dos Commands Practical File

20 Dir(s) 722,808,569,856 bytes free

Directory command with column wiseD:\>dir/w Volume in drive D is Mega Bite Volume Serial Number is E489-D80E

Directory of D:\

08102009.jpg08102009_002.jpg[Audio][English Mix 2][English Mp3][hip hop][Hip Hop Song]Michael Jackson - Off The Wall (1979) (mrsjs).torrentMICHAEL JACKSON - King Of Pop [Australian Edition][Bubanee].torrent[MJ][Movies][My Folder][New Folder][newwewew][NFSMW-MINI]Pankaj Udhas - Kitni Yaad Aati Hai.mp4[Pappu][pooo][RAJPAT][simple mehndi][Softwares][Torrent][Videos][windonew]Windows 7 x86 with Activation Crack torrent torrent rocks Rapidshare Downloads - Freshwap_Net.htm[Windows 7 x86 with Activation Crack torrent torrent rocks Rapidshare Downloads- Freshwap_Net_files] 6 File(s) 12,966,935 bytes 20 Dir(s) 722,808,569,856 bytes free

Clear Screen CommandD:\>cls

Help CommandD:\>helpFor more information on a specific command, type HELP command-nameASSOC Displays or modifies file extension associations.AT Schedules commands and programs to run on a computer.ATTRIB Displays or changes file attributes.

Page 4: Dos Commands Practical File

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.PRINT Prints a text file.PROMPT Changes the Windows command prompt.

Page 5: Dos Commands Practical File

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.

Specific Help Command for any commandD:\>help dirDisplays a list of files and subdirectories in a directory.

DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N] [/O[[:]sortorder]] [/P] [/Q] [/S] [/T[[:]timefield]] [/W] [/X] [/4]

[drive:][path][filename] Specifies drive, directory, and/or files to list.

/A Displays files with specified attributes. attributes D Directories R Read-only files H Hidden files A Files ready for archiving S System files - Prefix meaning not /B Uses bare format (no heading information or summary). /C Display the thousand separator in file sizes. This is the default. Use /-C to disable display of separator. /D Same as wide but files are list sorted by column. /L Uses lowercase. /N New long list format where filenames are on the far right. /O List by files in sorted order. sortorder N By name (alphabetic) S By size (smallest first) E By extension (alphabetic) D By date/time (oldest first) G Group directories first - Prefix to reverse order /P Pauses after each screenful of information. /Q Display the owner of the file.

Page 6: Dos Commands Practical File

/S Displays files in specified directory and all subdirectories. /T Controls which time field displayed or used for sorting timefield C Creation A Last Access W Last Written /W Uses wide list format. /X This displays the short names generated for non-8dot3 file names. The format is that of /N with the short name inserted before the long name. If no short name is present, blanks are displayed in its place. /4 Displays four-digit years

Switches may be preset in the DIRCMD environment variable. Overridepreset switches by prefixing any switch with - (hyphen)--for example, /-W.

Date CommandD:\>dateThe current date is: Sat 11/28/2009Enter the new date: (mm-dd-yy)

Time CommandC:\>timeThe current time is: 10:04:45.84Enter the new time:

To create a fileC:\>copy con SunilMy name is Sunil Kumar.^Z 1 file(s) copied.To edit a fileC:\>edit Sunil

To view a file createdC:\>type SunilMy name is Sunil Kumar. I am student of BCA.

To rename a file existC:\>ren Sunil Sunny

To delete a existing fileC:\>del Sunny

To Change the title of Command PromptC:\>title Sunil

To make a directoryC:\>md SunilC:\>mkdir Sunny

To rename a directory

Page 7: Dos Commands Practical File

C:\>ren Sunil Sunil1

To delete a directoryC:\>del Sunil1C:\Sunil1\*, Are you sure (Y/N)? y

Command to change the color of command promptC:\>color 1aSets the default console foreground and background colors.

COLOR [attr]

attr Specifies color attribute of console output

Color attributes are specified by TWO hex digits -- the firstcorresponds to the background; the second the foreground. Each digitcan be any of the following values:

0 = Black 8 = Gray 1 = Blue 9 = Light Blue 2 = Green A = Light Green 3 = Aqua B = Light Aqua 4 = Red C = Light Red 5 = Purple D = Light Purple 6 = Yellow E = Light Yellow 7 = White F = Bright White

If no argument is given, this command restores the color to what it waswhen CMD.EXE started. This value either comes from the current consolewindow, the /T command line switch or from the Default Color registryvalue.

The COLOR command sets ERRORLEVEL to 1 if an attempt is made to executethe COLOR command with a foreground and background color that are thesame.

Example: "COLOR fc" produces light red on bright white

To show the volumeC:\>vol Volume in drive C is Window's XP Volume Serial Number is 7853-61EC

Label commandC:\>labelVolume in drive C: is Window's XPVolume Serial Number is 7853-61ECVolume label (ENTER for none)?

Tree command

Page 8: Dos Commands Practical File

C:\Program Files\JetAudio>treeFolder PATH listing for volume Window's XPVolume serial number is 0006F004 7853:61ECC:.├───Microsoft.VC90.ATL├───Microsoft.VC90.CRT├───Microsoft.VC90.MFC├───Skin└───Vis ├───Sound2Vision │ ├───DAT │ └───Example │ └───Preset ├───space └───Synesth

C:\Program Files\JetAudio>tree/fFolder PATH listing for volume Window's XPVolume serial number is 0006F004 7853:61ECC:.│ dbghelp.dll│ ffmpeg_vx.exe│ JADUpInf_Basic.cli│ JADUpInf_Plus.cli│ JADUpInf_RM.cli│ JADUpInf_WM7.cli│ JADUpInf_WM9.cli│ JcServer.exe│ jdl_avcodec.dll│ jdl_exif.dll│ jdl_FLAC.dll│ jdl_id3lib.dll│ jdl_ogg.dll│ jdl_vorbis.dll│ jdl_vorbisenc.dll│ jdl_vorbisfile.dll│ jdl_ximage.dll│ jdl_xvid.dll│ jetAudio.cfg│ JetAudio.exe│ JetCast.cfg│ JetCast.exe│ JetCfg.dll│ jetChat.dll│ jetChat.exe│ JetCrash.dll│ JetDSD.ax│ JetFlExt.dll│ JetLogo.exe

Page 9: Dos Commands Practical File

│ JetLyric.exe│ JetRecorder.exe│ JetSFX3.ax│ JetShell.exe│ JetTrim.exe│ jetUpdate.dat│ jetUpdate.exe│ jetVidCnv.cfg│ JetVidCnv.exe│ JetVidCopy.exe│ JFACDRd.dll│ JFACDWt.dll│ JFACMDec.dll│ JFAMP3En.dll│ JFAPERd.dll│ JFAPEWt.dll│ JFAudFP.dll│ JFCDPl.dll│ JFDSPl.dll│ JFDVDPl.dll│ JFEffB3D.dll│ JFEffBBE.dll│ JFEffDRC.dll│ JFEffEQ.dll│ JFEffFX.dll│ JFEffRvb.dll│ JFEffSP.dll│ JFEffWid.dll│ JFEffXB.dll│ JFExRmc.dll│ JFFLACRd.dll│ JFFLACWt.dll│ JFIMSRD.dll│ JFMIDRd.dll│ JFMODRd.dll│ JFMP3Dec.dll│ JFMP3Enc.dll│ JFMP3ProEnc.dll│ JFMP3ProWt.dll│ JFMP3Rd.dll│ JFMP3Wt.dll│ JFMPCRd.dll│ JFMPCWt.dll│ JFNetFP.dll│ JFNetworkWt.dll│ JFOGGEnc.dll│ JFOGGRd.dll│ JFOGGWt.dll│ JFPCMCnv.dll│ JFQTPl.dll

Page 10: Dos Commands Practical File

│ JFRMPl.dll│ JFRMWt.dll│ JFSpeexRd.dll│ JFSpeexWt.dll│ JFTTARd.dll│ JFTTAWt.dll│ JFVCDPl.dll│ JFWavIn.dll│ JFWavOut.dll│ JFWavRd.dll│ JFWavWt.dll│ JFWMANetWt.dll│ JFWMANetWt9.dll│ JFWMARd.dll│ JFWMAWt.dll│ JFWMAWt7.dll│ JFWVPRd.dll│ JFWVPWt.dll│ JSMP3OGGWt.dll│ jsWMAWt.dll│ JXAC3Enc.dll│ JXAMixer.dll│ JXCDDB.dll│ JXCDMan.dll│ JXExplr.dll│ JXLeoLDB.dll│ JXLeoRD.dll│ JXMP3Dec.dll│ JXMP3Enc.dll│ JXOGGDEC.dll│ JXOGGDecF64.dll│ JXOGGDecI32.dll│ JXPDev.dll│ JXScsiIf.dll│ JXTag.dll│ JXVidCnv.dll│ JXVidDES.dll│ JXVidFlt.dll│ JXVidInfo.dll│ JXVidRsz.dll│ JXVisual.dll│ mfc42.dll│ msvcirt.dll│ msvcp60.dll│ msvcrt.dll│ pthreadVC.dll│ REVERB.INI│ Thumbnail_100x090.bmp│ Thumbnail_160x140.bmp│ VideoConvert_WMK_A2.dat

Page 11: Dos Commands Practical File

│ VideoConvert_WMK_X5.dat│ VX_Presets_COWON.ENU.dat│ VX_Presets_COWON.JPN.dat│ VX_Presets_COWON.KOR.dat│ XMIDI.iwd│ _fileext.dll│├───Microsoft.VC90.ATL│ atl90.dll│ Microsoft.VC90.ATL.manifest│├───Microsoft.VC90.CRT│ Microsoft.VC90.CRT.manifest│ msvcp90.dll│ msvcr90.dll│├───Microsoft.VC90.MFC│ mfc90u.dll│ Microsoft.VC90.MFC.manifest│├───Skin│ Default.jsk│ DefaultBar.jsk│ DefaultBarSp.jsk│ DefaultBarSp_s.jsk│ DefaultBar_s.jsk│ Default_Mini.jsk│ Default_Silver.jsk│ jetCast.jcsk│ jetChat.jcsk│ makejsk.exe│└───Vis │ HarmonyColor.dll │ hermes.dll │ PixelTrip.dll │ vis_s2v.dll │ vis_space.dll │ vis_synesth.dll │ vis_synesth_config.exe │ ├───Sound2Vision │ ├───DAT │ │ ath.dat │ │ config.dat │ │ config.ini │ │ contrast.dat │ │ image.dat │ │ shape128.dat │ │ tex.dat

Page 12: Dos Commands Practical File

│ │ userpresetlist.dat │ │ │ └───Example │ └───Preset │ A bewitching smile.PS │ A fairyland.PS │ A snowstorm(No BG).PS │ Be driven.PS │ Color Paper.PS │ Consecutive.PS │ Crookedly.PS │ Debouchment.PS │ Emit.PS │ Explore space.PS │ Fusion.PS │ Gay life.PS │ Happening.PS │ India ink.PS │ Interval.PS │ Performance.PS │ Polite style.PS │ Pulse beats.PS │ Silence(No BG).PS │ Take cover.PS │ ├───space │ Aurore.spc │ Bass Trip.spc │ Cercles Dance.spc │ Cercles Waves.spc │ Colored Shower.spc │ Cool Shape.spc │ default.spc │ Disco.spc │ Distor Dream.spc │ Ecstasy.spc │ Fast Graph.spc │ Fiesta.spc │ Flashis.spc │ Kalei Trip.spc │ Luciols.spc │ Moving Cyclones.spc │ Nebula.spc │ New Dimension.spc │ Psychotic.spc │ Radar.spc │ RainBow Trip Bis.spc │ RainBow Trip.spc │ Random.spc │ Snow Wind.spc

Page 13: Dos Commands Practical File

│ space.bmp │ Space.spc │ space.Theme │ StarField Bis.spc │ StarField.spc │ Sunny.spc │ Tunnel.spc │ Vibration.spc │ Vision Life.spc │ vis_space.txt │ Wet.spc │ Wind.spc │ Worm.spc │ ZikBox.spc │ └───Synesth corona.svp corona.txt CosmicBelt.svp CosmicBelt.txt Spec_n_Hopp.bmp Spec_n_Hopp.svp Spec_n_Hopp.txt

To print a file C:\>print sunilC:\sunil is currently being printed

Attribute commandC:\>help attribDisplays or changes file attributes.

ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [drive:][path][filename] [/S [/D]]

+ Sets an attribute. - Clears an attribute. R Read-only file attribute. A Archive file attribute. S System file attribute. H Hidden file attribute. [drive:][path][filename] Specifies a file or files for attrib to process. /S Processes matching files in the current folder and all subfolders. /D Processes folders as well.

C:\>attrib +r sunilC:\>attrib -r sunilC:\>attrib +h sunil

Page 14: Dos Commands Practical File

C:\>attrib -h sunilC:\>attrib +a sunilC:\>attrib -a sunil


Recommended