Author |
Message |
hellzlaker Registered Cap Buster Popping men in the ass since Oct 2005
Gender: NEVER ENOUGH! Joined: Oct 27 2005 Posts: 34 Offline
|
Posted: Thu Nov 23, 2006 8:49 pm Post subject: batch files are it beter version of c++? |
|
|
|
|
i just learned howto make an exe using .bak files.
it looks alike c++ but beter!
example hello world in c++ would be
#include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{
cout<<"hey";
system("pause");
return 0;
}
|
i did all that but so much easyer in .bat file
@echo off
echo hey
@pause
|
so its way shorter and same result so i gues its better?[/code] |
|
Back to top |
|
|
Bak ?ls -s 0 in
Age:25 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Thu Nov 23, 2006 10:39 pm Post subject: |
|
|
|
|
.bat files aren't .exes, though. There's a built-in command called echo which you're calling with the parameter "hey". Batch files are scripts where you can specify a series of programs to run. In theory, if you have enough programs you might be able to do some of the things you can with c++, but never with the same speed. _________________ SubSpace Discretion: A Third Generation SubSpace Client |
|
Back to top |
|
|
hellzlaker Registered Cap Buster Popping men in the ass since Oct 2005
Gender: NEVER ENOUGH! Joined: Oct 27 2005 Posts: 34 Offline
|
Posted: Thu Nov 23, 2006 11:28 pm Post subject: |
|
|
|
|
so c++ is stil faster? and basicly u need to make exe with c++ and then u run that exe using .bat file? |
|
Back to top |
|
|
BDwinsAlt Agurus's Posse
Age:33 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
Posted: Thu Nov 23, 2006 11:52 pm Post subject: |
|
|
|
|
Yeah use bat files to run exe's if you want. It makes everything simplier if you have to run things on command line, just double click a file. The command prompt commands are limited. |
|
Back to top |
|
|
hellzlaker's hoe Guest
Offline
|
Posted: Fri Nov 24, 2006 12:21 am Post subject: |
|
|
|
|
can u tell me how to do that
so i have
exe hello world and i want to run it using .BAT?
do i do
@echo off
:start c:\\documents and settings\\desktop\\c++\\hello worls.exe
pause
and it will do exact same thing as i would run hello world? |
|
Back to top |
|
|
helzlalalalla Guest
Offline
|
Posted: Fri Nov 24, 2006 12:43 am Post subject: |
|
|
|
|
how do u make batch file execute it? |
|
Back to top |
|
|
Doc Flabby Server Help Squatter
Joined: Feb 26 2006 Posts: 636 Offline
|
|
Back to top |
|
|
asdsadsaadsa Guest
Offline
|
Posted: Fri Nov 24, 2006 9:41 am Post subject: |
|
|
|
|
what about using namespace std; ? |
|
Back to top |
|
|
dsfzsaf Guest
Offline
|
Posted: Fri Nov 24, 2006 9:42 am Post subject: |
|
|
|
|
also is it true most viruses are made with batch files? |
|
Back to top |
|
|
Cyan~Fire I'll count you!
Age:36 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Fri Nov 24, 2006 10:37 am Post subject: |
|
|
|
|
1. You don't need it if you prefix all the STL stuff with "std::".
2. No. _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
|
fhdfgfds Guest
Offline
|
Posted: Fri Nov 24, 2006 10:57 am Post subject: |
|
|
|
|
do you know the command for c++ to open cdrom? |
|
Back to top |
|
|
Bak ?ls -s 0 in
Age:25 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Fri Nov 24, 2006 11:40 am Post subject: |
|
|
|
|
printf("Press the button on your cd tray.\n"); |
|
Back to top |
|
|
BDwinsAlt Agurus's Posse
Age:33 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
|
Back to top |
|
|
Cyan~Fire I'll count you!
Age:36 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Fri Nov 24, 2006 4:01 pm Post subject: |
|
|
|
|
BD, you didn't link to your own topic? Maybe you just didn't want the reminder that you couldn't even copy+paste code right? |
|
Back to top |
|
|
hellzlaker Registered Cap Buster Popping men in the ass since Oct 2005
Gender: NEVER ENOUGH! Joined: Oct 27 2005 Posts: 34 Offline
|
|
Back to top |
|
|
Mine GO BOOM Hunch Hunch What What
Age:40 Gender: Joined: Aug 01 2002 Posts: 3614 Location: Las Vegas Offline
|
Posted: Fri Nov 24, 2006 6:30 pm Post subject: |
|
|
|
|
This topic went completely down hill and has no merit at all.
Locked topic. |
|
Back to top |
|
|
|