Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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 PRNDoes anybody have any idea how I should convert this batch-program into a valid working executable ?
Miskva

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.

![]() |
![]() |
![]() |

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