Jump to content

Packaging .exe and batch script in an executable file


Recommended Posts

Hi,

I have few files [4 executables (.exe) along with a Windows batch script], which I need to package in a single exe. Of these 4 .exe files, 2 have to be transferred to a remote location. This transfer is handled by the Windows batch script.

The main file here is the Windows batch file, which will use all other exe files during its execution. I need to prepare an exe, which when clicked, should call the batch file.

Can anyone suggest any packaging tool for achieving my purpose?

Regards,

GC

Link to comment
Share on other sites

Hi there.

You would do well to consider "Open Source" software for your use: http://sourceforge.net/

Or even writing up another batch file to suit your needs: http://www.watchingthenet.com/windows-tip-use-batch-file-to-open-multiple-programs-at-once.html

There is always of course: http://www.autohotkey.com/ - or - http://www.autoitscript.com/autoit3/index.shtml

and also: http://corz.org/windows/software/batch-runner/

All require a certain amount of expertise.

Whilst searching around such sites, you may even come across exactly what you are looking for.

As with all such quests, the amount of learning involved is invaluable in future projects.

John.

Link to comment
Share on other sites

Another thought. :)

Write a new batch script to exercise that which you wish to achieve. (Calling the original batch file)

Convert the newly written batch file to a .exe


/>http://www.fileheap.com/freesoftware/bat2exe.html


/>http://www.battoexe.com/

John.

EDIT: http://www.emco.is/products/msi-package-builder/features.php

http://www.freewarefiles.com/MSIBuilder_program_13664.html

http://support.microsoft.com/kb/257718

Link to comment
Share on other sites

Having had no reply back from you. Show me exactly what it is that you are trying to do. (In great, and precise detail)

I realise that this has put you in a "Put up, or shut up" situation, but it could be good for yourself and other people reading the forum.

Sometimes typing out the full complexity of the problem releases ideas within the mind.

Give it a go. - Even if we cant understand the problem or cannot come up with an answer for you, - it is all food for thought.

C'mon, - reply. It sure beats asking and answering your own questions. :)

John.

Link to comment
Share on other sites

Having had no reply back from you. Show me exactly what it is that you are trying to do. (In great, and precise detail)

I realise that this has put you in a "Put up, or shut up" situation, but it could be good for yourself and other people reading the forum.

Sometimes typing out the full complexity of the problem releases ideas within the mind.

C'mon, - reply. It sure beats asking and answering your own questions. :)

John.

Hi John,

Thanks a ton for your time & suggestions. Well, I’ve got the tool I was looking for - ‘Quick Batch File Compiler’. You too pointed me to that link (http://www.battoexe.com/). Thank You!

Besides, your suggested tools such as AutoIT & BatchRunner are also good. Though I will be using ‘Quick Batch File Compiler’ for my current purpose, the ones you’ve pointed might prove useful in future issue.

Let me explain, what I am trying to achieve:

I have one batch script & few exes for different uses. I create on final exe using ‘Quick Batch File Compiler’, which contains all the given below files (.bat + 5 exes)

Let’s say,

1) A.bat

2) B.exe

3) C.exe

4) D.exe

5) E.exe

When I run the compiled exe, the batch script is called. The batch script takes UNC path of remote server from the user, remote server credentials, and then copies two EXEs (B.exe & C.exe) to remote machine. This copy operation is performed using pscp.exe (here D.exe). Once the EXEs are copied to remote server, I use Plink tool (here E.exe) to connect to remote server. I open the cmd.exe present on the remote server using Plink, and then call the copied EXEs (B.exe & C.exe) to perform my desired operation on remote machine.

I hope my explanation was clear.

Thanks again John!

Regards,

GC

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy