Is there a site that can teach how to use the shell commands, and what they all are?
Printable View
Is there a site that can teach how to use the shell commands, and what they all are?
Shell commands? For Windows, right? (Based on avatar.)
yes for windows :)
Well, CD changes your directory (DOS commands are case-insensitive):
DIR lists the files in a directory (something like this):Code:C:\>cd dwk
C:\DWK>
To execute a program, like hello.exe, just type the name:Code:C:\DWK>dir
Volume in drive C: is HARD DRIVE
Directory is C:\DWK
. <DIR> 11-11-05 .
hippo txt 11-12-05 hippo.txt
someth~1 bat 10-12-05 something.bat
2 file(s)
1 dir(s)
C:\DWK>
To change drives, type the letter followed by a colon:Code:C:\DWK>cd c
C:\DWK\C>hello
Hello, World!
C:\DWK\C>
Code:C:\DWK\C>A:
A:\>C:
C:\DWK\C>cd \temp
C:\Temp>
Get a DOS book and read it.
i mean from within a c++ program.
I know system(name.exe); (or something like that) launches a program.
Oh, sorry. Yes, this will launch a program:
What else do you need to know about it? You can use any DOS command (if you're on a Microsoft machine) by using system(). (Although some commands have better equivalents, like chdir() instead of CD.)Code:#include <stdlib.h>
system("hello.exe");
system("hello");