SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 763 | Next

David A. Karp

"Windows Vista Annoyances: Tips, Secrets, and Hacks"

The set command is also used to assign data to environment
variables.
type filename
Displays the contents of a text file. Type type filename | more to display
the file and pause between each page of information rather than displaying
the whole file at once.
556 | Chapter 9: Scripting and Automation
Batch Files
When it comes to quick and dirty scripting, it??™s hard to beat DOS batch
files. Batch files, similar to WSH scripts (discussed earlier in this chapter),
are plain-text files with the .bat or .cmd filename extension. However, rather
than relying on a complex, unfamiliar scripting language, batch files simply
consist of one or more DOS commands, typed one after another.
One of the problems with Windows-based scripting is that it tries to control
a graphical environment with a command-based language. Because DOS is a
command-based interface, DOS-based scripting (batch files) is a natural
extension of the environment.
Consider the following four DOS commands:
c:
cd \windows\temp
attrib -r *.tmp
del *.tmp
If you type these commands into a plain-text editor, such as Notepad, save
them into a .bat file, and then execute the batch file by double-clicking or
typing its name at the Command Prompt, it will have the same effect as if the
commands were manually typed consecutively at the prompt. Obviously, this
Using Long Filenames in the Command Prompt
Given the nature of long filenames (they can have spaces), there are times that
typing them on the command line can cause a problem.


Pages:
751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6