Batch File to EXE and Hide Files

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
spiderman187
Posts: 8
Joined: 25 Feb 2012 22:12

Batch File to EXE and Hide Files

#1 Post by spiderman187 » 25 Feb 2012 22:19

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


foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Batch File to EXE and Hide Files

#2 Post by foxidrive » 25 Feb 2012 23:57

What is the purpose of this program?

spiderman187
Posts: 8
Joined: 25 Feb 2012 22:12

Re: Batch File to EXE and Hide Files

#3 Post by spiderman187 » 26 Feb 2012 01:38

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

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Batch File to EXE and Hide Files

#4 Post by foxidrive » 26 Feb 2012 03:19

So how does the batch file install apps on the android device?

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

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Batch File to EXE and Hide Files

#5 Post by Squashman » 26 Feb 2012 11:29

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.

spiderman187
Posts: 8
Joined: 25 Feb 2012 22:12

Re: Batch File to EXE and Hide Files

#6 Post by spiderman187 » 26 Feb 2012 12:34

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

spiderman187
Posts: 8
Joined: 25 Feb 2012 22:12

Re: Batch File to EXE and Hide Files

#7 Post by spiderman187 » 26 Feb 2012 12:42

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.

spiderman187
Posts: 8
Joined: 25 Feb 2012 22:12

Re: Batch File to EXE and Hide Files

#8 Post by spiderman187 » 27 Feb 2012 00:39

A quick note.

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

I want the EXE to Remain whole.

Thanks Again

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Batch File to EXE and Hide Files

#9 Post by foxidrive » 27 Feb 2012 03:30

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.

spiderman187
Posts: 8
Joined: 25 Feb 2012 22:12

Re: Batch File to EXE and Hide Files

#10 Post by spiderman187 » 27 Feb 2012 10:41

I see what you mean.

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

Thank you

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Batch File to EXE and Hide Files

#11 Post by Squashman » 27 Feb 2012 11:18

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.

alan_b
Expert
Posts: 357
Joined: 04 Oct 2008 09:49

Re: Batch File to EXE and Hide Files

#12 Post by alan_b » 27 Feb 2012 13:18

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.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Batch File to EXE and Hide Files

#13 Post by foxidrive » 27 Feb 2012 14:59

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.

spiderman187
Posts: 8
Joined: 25 Feb 2012 22:12

Re: Batch File to EXE and Hide Files

#14 Post by spiderman187 » 27 Feb 2012 15:13

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:

kpropell
Posts: 14
Joined: 24 Aug 2009 10:11

Re: Batch File to EXE and Hide Files

#15 Post by kpropell » 28 Feb 2012 07:35

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.

Post Reply