[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Converted Batch to .exe by compiling but error

Posted on 2017-12-07
11
Low Priority
?
34 Views
Last Modified: 2017-12-08
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
0
Comment
Question by:Aryabhatta M
  • 4
  • 4
  • 3
11 Comments
 

Author Comment

by:Aryabhatta M
xx.bat invokes a VBS script yy.vbs in its code flow
0
 
LVL 59

Expert Comment

by:Bill Prew
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
 

Author Comment

by:Aryabhatta M
yes it works, i tested @echo Hello world.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 36

Expert Comment

by:ste5an
Just a comment: I don't see any use in converting a batch into an executable.. Imho wasted time and efforts.
0
 
LVL 59

Expert Comment

by:Bill Prew
Okay, so then the next question is what does your BAT file look like, can you post it here?


»bp
0
 

Author Comment

by:Aryabhatta M
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
 
LVL 59

Expert Comment

by:Bill Prew
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
 
LVL 36

Expert Comment

by:ste5an
No, cause executables can be easliy reenginered.
0
 
LVL 36

Expert Comment

by:ste5an
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
 

Author Comment

by:Aryabhatta M
My Bad, I should have thought about it before writing batch but I already wrote some huge batch scrips  :-)
0
 
LVL 59

Accepted Solution

by:
Bill Prew earned 1000 total points
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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Join & Write a Comment

Know the reasons and solutions to move/import EDB to New Exchange Server. Also, find out how to recover an Exchange .edb file and to restore the file back.
In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question