Page 1 of 2

Batch File to EXE and Hide Files

Posted: 25 Feb 2012 22:19
by spiderman187
Hey guys I just registered and I am looking for a little help with a project that I am working on.

I created a batch file design to install certain things onto an Android device. Then I converted into an EXE using

Advance BAT to EXE Converter v2.50

Now everything works like its supposed to no problems there.

I can even give the EXE an icon. Its a pretty neat program that I found.

But what I need help with is actually taking the files and sub folders that hold even more files and include them in my EXE.

Can anyone help me with how would I combine all the files and folders with my EXE that way they cannot be seen?

Thank You very much in advance


Re: Batch File to EXE and Hide Files

Posted: 25 Feb 2012 23:57
by foxidrive
What is the purpose of this program?

Re: Batch File to EXE and Hide Files

Posted: 26 Feb 2012 01:38
by spiderman187
This allows you to install android apps, which are in .apk extensions using adb mode. I prompt users to select the app and then it installs it for them.

I just dont want it to be a folder with all the dlls adb.exe for adb commands, the folders and apks etc.


I want to combine them all into one exe.

Thanks

Re: Batch File to EXE and Hide Files

Posted: 26 Feb 2012 03:19
by foxidrive
So how does the batch file install apps on the android device?

You can create a self extracting archive file with everything inside.

Re: Batch File to EXE and Hide Files

Posted: 26 Feb 2012 11:29
by Squashman
Sounds like you need a different batch packager. The ones I have used in the past allow to include any additional resource files you need.

Re: Batch File to EXE and Hide Files

Posted: 26 Feb 2012 12:34
by spiderman187
Squashman wrote:Sounds like you need a different batch packager. The ones I have used in the past allow to include any additional resource files you need.



Do you mind sharing what program/s you have used to include the source files please.

Thank You

Re: Batch File to EXE and Hide Files

Posted: 26 Feb 2012 12:42
by spiderman187
foxidrive wrote:So how does the batch file install apps on the android device?

You can create a self extracting archive file with everything inside.




It installs the apps by doing the following command: adb install name.apk


Then it installs the app onto the phone.

I also have it check the Android OS version to verify that the apk will work on that version.

Re: Batch File to EXE and Hide Files

Posted: 27 Feb 2012 00:39
by spiderman187
A quick note.

I don't want the files to ever be decompiled or unzipped.

I want the EXE to Remain whole.

Thanks Again

Re: Batch File to EXE and Hide Files

Posted: 27 Feb 2012 03:30
by foxidrive
spiderman187 wrote:I don't want the files to ever be decompiled or unzipped.


AFAICS It can't be done.

If you have an application that runs and calls files from a folder structure, then it will not run unless the folder structure and files are available on the hard drive or other media, at least temporarily.

Re: Batch File to EXE and Hide Files

Posted: 27 Feb 2012 10:41
by spiderman187
I see what you mean.

Any suggestions on how to make it so that the files are temporary ?

Thank you

Re: Batch File to EXE and Hide Files

Posted: 27 Feb 2012 11:18
by Squashman
spiderman187 wrote:A quick note.

I don't want the files to ever be decompiled or unzipped.

I want the EXE to Remain whole.

Thanks Again

That is all a BAT to EXE converter does. It packages up all your files into a Self extracting archive. When you execute the exe it unpacks the archive and executes your batch file. Then it deletes what it unpacked.

Re: Batch File to EXE and Hide Files

Posted: 27 Feb 2012 13:18
by alan_b
TrueCrypt will encrypt partitions or folders or possible files to render inaccessible any information on the disc.
It will decrypt and supply the original in plain text/code without placing the plain text/code on the disc.

I think the technology exists to prevent the average user from gaining access to your decrypted code.
I suspect however there would be ways of capturing the contents of memory.

Re: Batch File to EXE and Hide Files

Posted: 27 Feb 2012 14:59
by foxidrive
Squashman wrote:That is all a BAT to EXE converter does. It packages up all your files into a Self extracting archive. When you execute the exe it unpacks the archive and executes your batch file. Then it deletes what it unpacked.


That's what an install wrapper type of program would do too.

Traditionally a bat to exe program just makes an executable out of a bat file - I hadn't been aware that modern ones wrap up folders and files too.

Re: Batch File to EXE and Hide Files

Posted: 27 Feb 2012 15:13
by spiderman187
foxidrive wrote:
That's what an install wrapper type of program would do too.

Traditionally a bat to exe program just makes an executable out of a bat file - I hadn't been aware that modern ones wrap up folders and files too.


I did find a program that includes files but when you run the exe it extracts the files into the folder. One step closer lol.

I wish it made them temp but this program doesn't do that. As soon as I find it I will post it here.

Thank You guys again for all your help.

:lol:

Re: Batch File to EXE and Hide Files

Posted: 28 Feb 2012 07:35
by kpropell
Hi,

I wish it made them temp but this program doesn't do that.


Bat To Exe-Converter (http://www.f2ko.de/programs.php?lang=en&pid=b2e has this feature.

To add folders/sub-folder, the only solution I can think of would be:
1. 7zip the folders.
2. Add the parameters (7z.exe x folder.7z) in the batch-script to extract the archives when executed.
3. Add the 7zip binaries (7z.exe, 7z.dll) and 7zipped files to the Bat To Exe-Conveter program.

The program also have a feature to password protect the exe and delete temp when finished.