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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aryabhatta MAuthor Commented:
xx.bat invokes a VBS script yy.vbs in its code flow
0
Bill PrewIT / Software Engineering ConsultantCommented:
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
Aryabhatta MAuthor Commented:
yes it works, i tested @echo Hello world.
0
Acronis Data Cloud 7.8 Enhances Cyber Protection

A closer look at five essential enhancements that benefit end-users and help MSPs take their cloud data protection business further.

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 PrewIT / Software Engineering ConsultantCommented:
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 PrewIT / Software Engineering ConsultantCommented:
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
Bill PrewIT / Software Engineering ConsultantCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.