Computing.Net > Forums > Programming > how do u make a batch file non-veiwable?

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.

how do u make a batch file non-veiwable?

Reply to Message Icon

Name: screwed124816
Date: June 28, 2009 at 20:11:28 Pacific
OS: Microsoft Windows Vista Home Premium
CPU/Ram: 2 GHz / 2045 MB
Product: Hewlett-packard / Rc659aa-aba a1632x
Subcategory: Batch
Comment:

Hi
I recently made a batch file which displays
certain information for certain people only
when they type in their codename. (which only
they know)
however, i realized that they could easily right
click it and click edit, and see the information
that isnt for them. (they dont know
programming, but they could figure it out)


basically, im trying to make a batch file be
run-able, but have its code be completely non-
viewable.



Sponsored Link
Ads by Google

Response Number 1
Name: RTAdams89
Date: June 28, 2009 at 20:18:03 Pacific
Reply:

Maybe try something like this: http://blog.bluebearr.net/2008/02/h...

-Ryan Adams
Free Computer Tips and more:http://RyanTAdams.com

Paid Tech Support: Black Diamond


0

Response Number 2
Name: johnangxun
Date: June 28, 2009 at 23:56:39 Pacific
Reply:

Hi,

btw, is it possible to make the batch file excutable file. So user will even no able to view the script written in the batch file!

ang


0

Response Number 3
Name: RTAdams89
Date: June 29, 2009 at 00:07:42 Pacific
Reply:

Not really. Perhaps you should look learning c++ or c#. Both have free compilers, lots of resources online, and are relatively easy to learn (especially to do simple things). Plus, they can quickly compile into a EXE file.

-Ryan Adams
Free Computer Tips and more:http://RyanTAdams.com

Paid Tech Support: Black Diamond


0

Response Number 4
Name: screwed124816
Date: July 1, 2009 at 15:29:08 Pacific
Reply:

thanks
i converted it into an .exe file and now it works great


0

Response Number 5
Name: Mechanix2Go
Date: July 1, 2009 at 23:51:31 Pacific
Reply:

" i converted it into an .exe file and now it works great"

how?


=====================================
If at first you don't succeed, you're about average.

M2


0

Related Posts

See More



Response Number 6
Name: RTAdams89
Date: July 2, 2009 at 02:21:04 Pacific
Reply:

If you used one of the free batch/perl/VB/javascript to EXE converters, be careful. Many I have seen just "wrap" your code. What I mean, is that if you open the EXE file with a text editor, you can still find your plain-text passwords (or whatever it is you want to hide), sandwiched between other code.

-Ryan Adams
Free Computer Tips and more:http://RyanTAdams.com

Paid Tech Support: Black Diamond


0

Response Number 7
Name: screwed124816
Date: July 2, 2009 at 16:35:30 Pacific
Reply:

i used this:
"http://download.cnet.com/Bat-To-Exe-converter/3000-2069_4-10555897.html"


0

Response Number 8
Name: Mechanix2Go
Date: July 3, 2009 at 02:09:42 Pacific
Reply:

That's far better than some of it's nominal predecessors.

First obvious snag is if your compiled bat sets vars they are lost when the compiled bat quits.


=====================================
If at first you don't succeed, you're about average.

M2


0

Response Number 9
Name: Judago
Date: July 3, 2009 at 03:57:58 Pacific
Reply:

I agree it's much better than the 1.4x versions. It is still a script wrapper, but I didn't expect password protection.....

Here's proof it's a script wrapper:

start notepad "%~f0"

Compile Wrap it up and give it a run..


There is a commercial product quick batch file compiler that is also a script wrapper but passes the .exe's file name(along with any other arguments) to the batch, which has a "shift" appended to the top to make %0 the exe name.

Of course it's probably more advantageous to be able to reference the actual script.

edit:
Anyhow it doesn't claim to be a compiler so I don't even know why I bothered to post at all.....


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: how do u make a batch file non-veiwable?

how do u convert an avi file to a mpeg? www.computing.net/answers/programming/how-do-u-convert-an-avi-file-to-a-mpeg/2004.html

Making a batch file www.computing.net/answers/programming/making-a-batch-file/16102.html

how to call a batch file from html www.computing.net/answers/programming/how-to-call-a-batch-file-from-html/1539.html