TechSpot

Protecting batch files

By Ididmyc600
May 18, 2010
  1. Hi all

    right lets make sure i make this clear, forgive me if it isnt

    i want to write a series of batch files for use in a pure DOS environment

    The files are designed to ghost an image onto a PC then create a second partition and make it bootable.

    The files work ok......

    but i want to make sure the files cant be read by right clicking them in windows and using notepad to edit them.

    can the files be converted to exe files or something similar so that they cant be read.
     
  2. gbhall

    gbhall TechSpot Chancellor Posts: 2,425   +77

    Notepad and similar would refuse to open them, but they will still be perfectly readable in any typical file viewer program. Unless you actually compile those batch files into say C language, you cannot remove the raw text, only package it differently.

    Offhand I cannot suggest how you could 'compile' them, but if you google say, 'compile dos batch program' a number of possibilities emerge. "Quick batch file compiler' is one. It does exactly what you want, but is not free.
     
  3. Ididmyc600

    Ididmyc600 TechSpot Chancellor Topic Starter Posts: 1,415

    HI

    Tried that prog, it only works in a win environment, not a dos one

    time to keep googling i think
     
  4. WinXPert

    WinXPert TS Guru Posts: 445

    I use Bat To Exe and bat2com to convert batch files to an executable file. You can use diet.exe to compress the resulting file.
     
  5. ravisunny2

    ravisunny2 TS Ambassador Posts: 1,980   +11

    You could use 'c' or any other compiler (dos platform), to write your own program to do the conversion.
     
  6. Ididmyc600

    Ididmyc600 TechSpot Chancellor Topic Starter Posts: 1,415

    Hi

    i found one called batch file compiler PE which worked great and my project is now completed

    thanks for the input lads and lasses
     
Topic Status:
Not open for further replies.

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...