Is there a site that can teach how to use the shell commands, and what they all are?
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.)
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
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>
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
Get a DOS book and read it.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
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");
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.