Windows has two modes, GUI mode which is the graphical look that you are
used to and Console mode which is a text mode. The command I showed you is
for Console mode.
- Either press Alt-Esc or click the Start button.
- Find the menu entry labeled Command Prompt and click it
- If you cannot find that menu entry then click on Run, type in
CMD and press Enter (for Win95/98/ME type in COMMAND)
When you are done you can close this window by typing the
word EXIT or by clicking the X button in the upper right (on
Win95 I do not thing the X will work - you need to type EXIT).
- Change directory to the one in which the project is located. The
name of that directory is the one you selected when you created
the project in the IDE. A typical project directory name might be
c:\program files\borland\cbuilder6\projects\myproject
where 'c:' indicates the disk drive used and each element following
a backslash (a '\') is the name of a directory.
You change the directory with the command CD as in
CD c:\program files\borland\cbuilder6\projects\myproject
(for Win95/98/ME enclose what follows CD in quotes)
Windows also accepts the command CHDIR to do the
same as the command CD
- If you successfully executed the change directory command
then the prompt (the text the operating system shows on the
last line) will be the directory name followed by a greater than
sign, a '>', as in
C:\Program Files\Borland\CBuilder6\Projects\myproject>
- Now type this command and afterwards press the Enter key
tdump filename.obj | grep -i WInMain
(the '|' is a vertical bar. On my keyboard it is the uppercase
char on the key which also has a backslash, a '\')
Tdump.exe is a program provided with the compiler. It shows
information about a file. Grep.exe is another program that
came with the compiler. It filters text, showing only those
lines of the text it is given which match a pattern that you
give. In this command the '-i' means to ignore upper vs lower
case and the WinMain is the pattern.
. Ed
Quote
Abcidefugian wrote in message
news: XXXX@XXXXX.COM ...
How do I edit command lines?
I'm still new to all of this.
>That is a command line. Tdump.exe and grep.exe are tools supplied with
>the compiler and that command line invokes them.
{smallsort}