0% found this document useful (0 votes)
15 views1 page

Command Window - Important Commands: Myfolder

This document provides a summary of important commands for the command window, including commands for navigating directories (cd), listing files (dir), creating/deleting files and folders (md, copy, erase), comparing files (fc), and using wildcards. It also describes how to view command syntax and options, retrieve previous commands, and toggle between windows. Common commands are listed like dir, cd, md, copy, erase, along with brief examples of usage.

Uploaded by

Ömer Uz
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views1 page

Command Window - Important Commands: Myfolder

This document provides a summary of important commands for the command window, including commands for navigating directories (cd), listing files (dir), creating/deleting files and folders (md, copy, erase), comparing files (fc), and using wildcards. It also describes how to view command syntax and options, retrieve previous commands, and toggle between windows. Common commands are listed like dir, cd, md, copy, erase, along with brief examples of usage.

Uploaded by

Ömer Uz
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Command Window – Important Commands

help lists all commands

p: switch to your P-drive


c: switch to the computer’s C-drive

dir list all files in a directory (aka “folder”); e.g.


dir (list all files in current directory)
dir myfolder (list all files in subdirectory myfolder)

cd change directory; e.g.


cd myfolder (move to subdirectory myfolder)
cd .. (move up one directory level)

md make (create) a directory; e.g.


md myfolder (make a subdirectory called myfolder)

copy copy files; e.g.


copy oldfile newfile
copy source.f95 myfolder\source.f95

ren rename files; e.g.


ren oldfile newfile

erase erase (delete) a file; e.g.


(or del) erase unwanted.txt

fc file compare; e.g.


fc file1 file2

type list the contents of a file


type somefile.txt
type somefile.txt ¦ more (list contents, one page at a time)

Wildcards (* and ?)
Can be used to match length-unspecified strings (*) or individual letters (?); e.g.
copy *.f95 *.bak
dir solve.f??

Command Syntax and Options


Most commands have various options; e.g.
dir /p – list files, one page at a time
To find the syntax and options available for any particular command use the /? option; e.g.
dir /?

History
Use the ↑and ↓ arrows on keyboard to recover previous commands.
Use F7 to get a list of previous commands and arrow up and down to choose one to reissue.

Editors
Suitable editors are notepad (Windows editor; comes with the operating system) and plato2 (programmer’s
editor; comes with the Salford software); e.g.
notepad myfile.f95
plato2 myfile.f95

Full-Screen/Command Window
Toggle between full-screen and graphics window by Alt-Enter

Fortran Command Window Basics David Apsley

You might also like