polyjnr.blogg.se

Dos prompt
Dos prompt






dos prompt

You can use this DOS command to change an attribute of a file (for example, read-only mode).ĬOPY question mark stands in for one character.For example:dir *.txtShows all files with the file extension “.txt”.dir dat*.txtShows all files with the extension “.txt” whose names start with “dat”.dir dat1?.txtShows all files whose names consist of “dat1”, followed by one more character and the file extension “.txt”.dir /pLists the results page by page.dir /sAlso lists the contents of sub-directories.dir c:\dat*.txt /p /sLists all files on the drive C that start with “dat” and end with “.txt”. An asterisk can be used as a placeholder for any number of characters. Filters (so-called “wild cards”) can be used to only display certain contents.

dos prompt

Jumps up one level in the directory and from there into the directory “files\photos”. Navigates to the root directory and from there to the directory “files\photos”. The DOS command “cd” combined with a backslash will take you to the root directory of the current drive. Combine the relevant letter with a colon to change between drives.Example: C: A:Ĭhanges to the directory you enter.For example: cd c:\windows








Dos prompt