Archive

Archive for the ‘Eksternal Dos’ Category

Instruksi XCOPY


Copies files and directory trees.

XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W] [/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U] [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z] [/EXCLUDE:file1[+file2][+file3]…]

  • source – Specifies the file(s) to copy.
  • destination – Specifies the location and/or name of new files.
  • /A – Copies only files with the archive attribute set, doesn’t change the attribute.
  • /M – Copies only files with the archive attribute set, turns off the archive attribute.
  • /D:m-d-y – Copies files changed on or after the specified date. If no date is given, copies only those files whose source time is newer than the destination time.
  • /EXCLUDE:file1[+file2][+file3]… – Specifies a list of files containing strings. Each string should be in a separate line in the files. When any of the strings match any part of the absolute path of the file to be copied, that file will be excluded from being copied. For example, specifying a string like \obj\ or .obj will exclude all files underneath the directory obj or all files with the. obj extension respectively.
  • /P – Prompts you before creating each destination file.
  • /S – Copies directories and subdirectories except empty ones.
  • /E – Copies directories and subdirectories, including empty ones. Same as /S /E. May be used to modify /T.
  • /V – Verifies each new file.
  • /W – Prompts you to press a key before copying. Read more…
Categories: Eksternal Dos

Instruksi TREE


Graphically displays the folder structure of a drive or path.

TREE [drive:][path] [/F] [/A]

  • /F – Display the names of the files in each folder.
  • /A – Use ASCII instead of extended characters.
Categories: Eksternal Dos

Instruksi SUBST


Associates a path with a drive letter.

SUBST [drive1: [drive2:]path]
SUBST drive1: /D

  • drive1: – Specifies a virtual drive to which you want to assign a path.
  • [drive2:] – path Specifies a physical drive and path you want to assign to a virtual drive.
  • /D – Deletes a substituted (virtual) drive.

Type SUBST with no parameters to display a list of current virtual drives.

Categories: Eksternal Dos

Instruksi SETVER


Sets the version number that MS-DOS reports to a program.

  • Display current version table:

    SETVER [drive:path]

  • Add entry:

    SETVER [drive:path] filename n.nn

  • Delete entry:

    SETVER [drive:path] filename /DELETE [/QUIET]

  • [drive:path] – Specifies location of the SETVER.EXE file.
  • filename – Specifies the filename of the program.
  • n.nn – Specifies the MS-DOS version to be reported to the program.
  • /DELETE or /D – Deletes the version-table entry for the specified program.
  • /QUIET – Hides the message typically displayed during deletion of version-table entry.
Categories: Eksternal Dos

Instruksi REPLACE


Replaces files.

REPLACE [drive1:][path1]filename [drive2:][path2] [/A] [/P] [/R] [/W]
REPLACE [drive1:][path1]filename [drive2:][path2] [/P] [/R] [/S] [/W] [/U]

  • [drive1:][path1]filename – Specifies the source file or files.
  • [drive2:][path2] – Specifies the directory where files are to be replaced.
  • /A – Adds new files to destination directory. Cannot use with /S or /U switches.
  • /P – Prompts for confirmation before replacing a file or adding a source file.
  • /R – Replaces read-only files as well as unprotected files.
  • /S – Replaces files in all subdirectories of the destination directory. Cannot use with the /A switch.
  • /W – Waits for you to insert a disk before beginning.
  • /U – Replaces (updates) only files that are older than source files. Cannot use with the /A switch.
Categories: Eksternal Dos

Instruksi RECOVER


Recovers readable information from a bad or defective disk.

RECOVER [drive:][path]filename

Consult the online Command Reference in Windows XP Help before using the RECOVER command.

Categories: Eksternal Dos
%d bloggers like this: