Converted Batch to .exe by compiling but error

I Converted a batch (xx.bat)to executable (xx.exe) by compiling it using (Bat To Exe Converter) from http://www.f2ko.de/en/b2e.php but while clicking on th exe file I get the error "The system cannot find the path specified" but this error does not happen for the batch file
Aryabhatta MAsked:
Who is Participating?
 
Bill PrewCommented:
There isn't a good way to conceal / protect BAT scripts, you will have to decide if there is anything too sensitive to continue down that path.  If someone is smart enough to modify one of your scripts for their own usage, then in theory they could do that already without seeing your BAT script.  Of course if there is password or other sensitive info in there, then that is a different story...


»bp
2
 
Aryabhatta MAuthor Commented:
xx.bat invokes a VBS script yy.vbs in its code flow
0
 
Bill PrewCommented:
Have you tried a very simple test BAT script, and did that run as an EXE?  Like:

@echo Hello world.

Open in new window


»bp
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Aryabhatta MAuthor Commented:
yes it works, i tested @echo Hello world.
0
 
ste5anSenior DeveloperCommented:
Just a comment: I don't see any use in converting a batch into an executable.. Imho wasted time and efforts.
0
 
Bill PrewCommented:
Okay, so then the next question is what does your BAT file look like, can you post it here?


»bp
0
 
Aryabhatta MAuthor Commented:
I found the while exe is running , its actually my bat is running from temp folder. So no use. Any engineer knows how to see the code. My purpose is to hide the code and protect it from getting changed inadvertently. Is there a way ?
0
 
Bill PrewCommented:
Most of the BAT "compilers" I have seen take the same approach, extracting to a temp BAT file and running, then deleting it.


»bp
0
 
ste5anSenior DeveloperCommented:
No, cause executables can be easliy reenginered.
0
 
ste5anSenior DeveloperCommented:
But to be honest, why not using C#? Tasks you can do in a batch, can be easily done in C# and you don't need that VB script either..
0
 
Aryabhatta MAuthor Commented:
My Bad, I should have thought about it before writing batch but I already wrote some huge batch scrips  :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.