DOS Commands for CS112: Intro to Programming, Slides of C programming

An overview of basic dos commands used in the cs112 intro to programming course. Commands include cd for changing directories, md for creating new directories, rmdir for deleting directories, help for displaying help info, cls for clearing the screen, dir for displaying file and subdirectory lists, exit for quitting the command interpreter, type for displaying file contents, more for displaying output one screen at a time, edit for editing files, echo for displaying messages, copy for copying files, rename for renaming files or directories, del for deleting files, and move for moving files or renaming directories. Additional commands like find, comp, attrib, time, date, path, start, tree, and color are also mentioned.

Typology: Slides

2010/2011

Uploaded on 10/06/2011

christina
christina 🇺🇸

4.6

(23)

393 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
CS112 Intro to Programming
Windows: Basic DOS Commands
CD -Changes (switches directories)
Usage: cd [path]
MD Creates a new directory
RMDIR Deletes a directory
Example:
C:\DOCUME~1\PPP>cd
C:\DOCUME~1\PPP
C:\DOCUME~1\PPP>cd ..
C:\DOCUME~1>cd \
C:\>md temp
C:\>cd temp
C:\TEMP>cd ..
C:\>rmdir temp
pf3

Partial preview of the text

Download DOS Commands for CS112: Intro to Programming and more Slides C programming in PDF only on Docsity!

CS112 – Intro to Programming

Windows: Basic DOS Commands

  • CD - Changes (switches directories)
  • Usage: cd [path]
  • MD – Creates a new directory
  • RMDIR – Deletes a directory
  • Example:
  • C:\DOCUME~1\PPP> cd C:\DOCUME~1\PPP
  • C:\DOCUME~1\PPP> cd ..
  • C:\DOCUME~1> *cd *
  • C:> md temp
  • C:> cd temp
  • C:\TEMP> cd ..
  • C:> rmdir temp
  • HELP – Displays help info
  • CLS - Clears the screen
  • DIR – Displays the list of files and subdirectories in a directory
  • EXIT – Quits the command interpreter
  • TYPE – Displays the contents of a file
  • MORE – Displays output one screen at a time
  • EDIT - Editor
  • Example:
  • C:> help cd
  • C:> help
  • C:> help more | more
  • C:> edit a.txt
  • C:> more a.txt
  • C:> *dir .mp
  • ECHO – Displays messages
  • COPY – Copies files to another location
  • RENAME – Renames a file or directory
  • DEL – Deletes a file
  • MOVE – Moves files, renames directories
  • Example:
  • C:> echo Hello, World!
  • Hello, World!
  • C:> copy A:\High_Hopes.mp3 D:\Music\Time.mp
  • C:> rename High_Hopes.mp3 brain_damage.mp
  • C:> del brain_damage.mp
  • C:> move temp1 temp
  • C:> *move Keep_Talking.mp3 D:\Music*