How to make a batch file copy itself?

How can i make a batch file still work, but stop people opening with notepad to edit/copy my commands?

  • I need to send my friend a batch file, he always tries to edit and make things different and sometimes he tells people he did it himself by adding echo made by (him). Its kinda ...show more

  • Answer:

    write it in a language like c or basic.

ZQODJ2EVBKKLCHRUAEBR46OTDQ at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

I'd agree with the idea of making an executable - an exe, dll, ActiveX control or something else along those lines. Alternatively, you could just tell your 'friend' you're tired of him passing off your work as his and he can do his own programming for a change...

TheMadProfessor

Purposely Make a batch file where he can edit and do stuff and make what ever he wants Its Keep your original codes authentic.

Great mind think alike

Earlier suggestion was to write the batch in VB or something then when it is compiled it would be hard to change... unless he is that good.. then he or she would not need you to make a batch file. :-) You can also use a batch compiler... (basically does the stuff I mentioned for you) http://www.abyssmedia.com/quickbfc/

127.0.0.1 Boy

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.