Computing.Net > Forums > Disk Operating System > problems bat -> exe

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

problems bat -> exe

Reply to Message Icon

Name: Miskva999
Date: October 3, 2003 at 01:42:34 Pacific
OS: w9x
CPU/Ram: P1
Comment:

Hi,

I was trying to convert a batch script to a binary executable, via some program I found on the net (bat2com)
This is a simplied example of the bacth script I want to convert:

===========================
...
echo stuff >> logfile.log
...
type file1.txt > cm.txt
type file2.txt >> cm.txt
type file3.txt >> cm.txt
...
something.exe < input.inp
...
===========================

I then checked wheter or not this batfile works as it should, no problem there. Then I convert it to an executable, resulting in the following:

the echo redirection : he just shows the text on-screen (iso putting it in the file)
the redirection via > : bad command
the reverse redirection : abort, retry, fail writing to PRN

Does anybody have any idea how I should convert this batch-program into a valid working executable ?

Miskva



Sponsored Link
Ads by Google

Response Number 1
Name: Miskva999
Date: October 6, 2003 at 03:03:03 Pacific
Reply:

Solved the issue, created the binary executable with only a call to a batchfile. That way I can do whatever I want in the batchfile, and still have my exectable as starting point.

Only disadvantage is that I have one more file, what the heck .. it works.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: problems bat -> exe

Set .exe Priority fr. Batch www.computing.net/answers/dos/set-exe-priority-fr-batch/12142.html

How can you delay execution of bat www.computing.net/answers/dos/how-can-you-delay-execution-of-bat/13763.html

Installation of Win 3.1 www.computing.net/answers/dos/installation-of-win-31/12537.html