Encrypt a .bat file ?


  1. Posts : 15
    Windows 7 Professionals 64bit
       #1

    Encrypt a .bat file ?


    Does anyone know if its possible to encrypt a .bat file so when you edit the file it won't be readable ?
      My Computer


  2. Posts : 72,051
    64-bit Windows 11 Pro for Workstations
       #2

    Hello Jon,

    Yes, you can use the Encrypting File System (EFS) in Windows 7 to encrypt a .bat file.

    Hope this helps,
    Shawn
      My Computer


  3. Posts : 8,398
    ultimate 64 sp1
       #3

    what happens if somebody copies the batch file onto another os?

    i guess you'll be able to read/edit it then?
      My Computer


  4. Posts : 2,009
    Windows 7 Ultimate x86
       #4

    Is the emphasis on encryption or is it enough to prevent "average Joes" from editing/reading the batch?
    In that case use a Batch compiler to convert the batch into an EXE file. It makes an 85kb EXE out of a 4kb BAT
    but this exe is virtually un-editable without an extensive knowledge in certain programming languages.
    Who has said knowledge gets around your BAT anyways

    -DG
      My Computer


  5. Posts : 5,056
    Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
       #5

    Maybe you could just zip up the files with winrar or 7zip or whatever and place a password.
      My Computer


  6. Posts : 2,177
    Windows 8.1 Pro x64
       #6

    SledgeDG said:
    Is the emphasis on encryption or is it enough to prevent "average Joes" from editing/reading the batch?
    In that case use a Batch compiler to convert the batch into an EXE file. It makes an 85kb EXE out of a 4kb BAT
    but this exe is virtually un-editable without an extensive knowledge in certain programming languages.
    Who has said knowledge gets around your BAT anyways

    -DG
    Wow, cheers for this, i really like the .exe regardless of stopping people from editing
      My Computer


  7. Posts : 2
    Windows 7 pro
       #7

    let you know, the Quick Batch File Compiler is extracting the file conten to the %temp% folder and its visible and not secure at all.
      My Computer


  8. Posts : 2,468
    Windows 7 Ultimate x64
       #8

    What do you mean by "secure"? What's your exact intention?

    Prevent other people from change the file? Simple file permissions are a better option.
    Prevent people from reading the file? What would be the benefit in that?
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 19:04.
Find Us