Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
You can set attribs HSR, but anybody can reset them in a few seconds.
=====================================
If at first you don't succeed, you're about average.M2

the most common way is to give the proper access rights and permission to the people supposed to run your batch. However if that's an issue, then don't use DOS batch. use something that compiles your code, like C...(or others)

Firstly, just want to say thx for your replys. Mechanix can you please explain about HSR attributes? And ghost, can you please explain C?
Sorry im new to this XDthx again

Mechanix2Go is talking about the attrib command, which was around before ACL, and continues to exist for backwards compatibility. To set Read-Only, it's:
attrib +r script.cmdghostdog talks of going from a scripting environment to a programming environment, where the end result is compiled and thus much harder to meaningfully change.

oh. thx^^. i think i have a programing program. Do i just write the text into the program?
Or do i have to do something different? Which programing program should i use and how do i save it?

Hold on here, I don't think you have a clear idea what we're talking about here. We're talking about a change in language. From, say, English to Chinese. Batch files and C programs are as different as night and day.

Damn. sorry. I just want to know if there is a program writer that will make it so that i can block people editing my programs. sorry i dont really understand, but please be patient. thank you

"From, say, English to Chinese"
pretty close
=====================================
If at first you don't succeed, you're about average.M2

Get c++ here:
http://www.uv.tietgen.dk/staff/mlha...
and start studying the examples.
=====================================
If at first you don't succeed, you're about average.M2

Start by learning a programming language, here a tutorial about C++
http://www.cplusplus.com/doc/tutorial/
then get an open source compiler to perform the suggested exercises and to experiment, below the Open Watcom C/C++ compiler
http://www.openwatcom.org/index.php...
If you survive, you are ready to speak Chinese (BTW I speak Italian/English).

im so confused. But i will read. Thanks alot dude. I just tried to install it and it said the file setup.inf cannot be found -_-

To the OP, i think you have a infrastructure design issue...(can't find the right name for it). I guess you want to hard code some passwords(that connects to something,server maybe?) in your batch script, then pass it on to your users to execute? maybe you want to tell us what exactly you want to do, and maybe you don't have to go that extreme of masking your code.

Sometimes i make little programs and give em to my friends. If edit works then they'll just click that and see what it is. And it wont really be unique anymore. I just want it so that the program still works but people can't see what the script is or copy it.

I think you're shovelling against the tide, using the words batch, script and program as if they refer to the same thing.
Once you give a copy to someone, it's not possible to prevent them from editing it.
=====================================
If at first you don't succeed, you're about average.M2

Sorry bout that. If i use a program writing program such as python, will i be able to do the same thing but without the option of them reading it or editing it?

You can code in Java and then use the compiler to compile to byte codes. that way its hard to see the source (code decompilation not taken into account). You can also code in Perl, then use tools like perl2exe to "change" it into something unreadable, or you can code in Python, and use tools like pyinstaller or py2exe to also "change" them to unreadable. However you have to take note that not all are foolproof..under the hands of a skilled "hacker" that is...

If a person has physical access to a file there is no known way to prevent that person from using the resource as they wish.
The only way would be to prevent physical access (via network)and prevent access by a filesystem that can set user rights to disallow read, copy, modify, and such.
I read it wrong and answer it wrong too. So get off my case you goober.

You could always put it in a ZIP file with and almost impossible password. Then they can only open or copy it but to copy they need the password. Getit? :)
I hope you can help!

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

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