Is there any way I could compile around, oh, 60 batch files into one exe file?
I Googled it and didn't find anything that works.
Printable View
Is there any way I could compile around, oh, 60 batch files into one exe file?
I Googled it and didn't find anything that works.
vbs.softalizer.com is this what u looking for?
Sort of...
With that I could only convert 1 batch file to exe.
I need all 60 to run off same exe. I could use that but then I would have to rewrite the entire layout of the files.
Is there anyway to compile a bunch of patch files to run as exe as they would if they were plain batch.
Like what I'm doing is creating a "Choose you own adventure story" for my infotech class.
So this is basically how it's set up
http://i166.photobucket.com/albums/u.../eacpleeee.jpg
and it just keeps treeing out like that.
You can do this...
Now, if you are making all of them into .exe files, replace "call" with "run Batch2.exe".Code://inside batch1.bat
echo "some stuff"
if whatever
call Batch2.bat
I don't think you can combine them all into a file like you could with a JAR, though.
Dang
If I have to make the all into exe and even then they will still be separate files I might as well leave as .bat
Thanks
Its possible to make VB support .bat thingy or whatever - So maybe if i would read a few tutorials maybe i could do it. Not sure..
You would still need all of the batch files.
Well, actually, its something like calling the function 'console("CMD command");', and you could wrap the different batch files in their own function.
You could still just write in VB with Prints though, so just keep it as batches or something...
Well it doesn't matter that much.
It's just a project with batches we're doing (Uber easy, mine has asciimation :D)
But it would have been nice to compile into one executable instead of a folder full of batches.
If I really wanted to I guess I could make it all one batch file and instead of calling the batch just to put them as gotos.... but that'd get very messy...
you could write something like this c++ source file, then compile it
dont know how well that would work thoughCode:#include <iostream>
using namespace std;
int main(int argc, char** argv) {
system("@echo off");
system("echo hello world!");
system("ping www.google.com");
}
I don't want to mess around too much with it yet. But thanks I'll maybe try that after though
hmm. Wouldn't it be possible to turn all of them into .exe and then bind them into 1 file or something? Not sure, but I think I've read about something like this before :p
E: Although, batch phails.
No no no....
It
EPIC FAILS
I have a bit of a question... Actually, two.
1) Why go through the trouble of making 60 batch files, instead of just one?
2) Why not just write a normal exe?
1) because it would be to muddled up
2) because it's an assignment for school and needs to be in batch
Putting into 1 file was for my own use
I think you can make a self extracting archive or something in winrar (says SFX, not sure what it really is XD) and put all the .bat's there and then go to advanced and SFX Options and put the path to extract to whatever you like and then make it run the first .bat on extraction :p ... Very lame, but easiest I can think of :D