Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Encrypt a .bat file ?

26 Nov 2010   #1
xMiNK

Windows 7 Professionals 64bit
 
 
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 System SpecsSystem Spec
.
26 Nov 2010   #2
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

Hello Jon,

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

Hope this helps,
Shawn
My System SpecsSystem Spec
26 Nov 2010   #3
mickey megabyte

ultimate 64 sp1
 
 

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

i guess you'll be able to read/edit it then?
My System SpecsSystem Spec
.

26 Nov 2010   #4
SledgeDG

Windows 7 Ultimate x86
 
 

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 System SpecsSystem Spec
26 Nov 2010   #5
Bill2

Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
 
 

Maybe you could just zip up the files with winrar or 7zip or whatever and place a password.
My System SpecsSystem Spec
26 Nov 2010   #6
JDobbsy1987

Windows 8.1 Pro x64
 
 

Quote   Quote: Originally Posted by SledgeDG View Post
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 System SpecsSystem Spec
23 Nov 2015   #7
babai93

Windows 7 pro
 
 

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 System SpecsSystem Spec
23 Nov 2015   #8
Alejandro85

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
Reply

 Encrypt a .bat file ?




Thread Tools





Similar help and support threads
Thread Forum
How to encrypt .txt file
I wanted to encrypt a single text file. So I right clicked Details > Advanced checked the bottom encrypt option- Compress option left blank "Details" button greyed out! Not that I need it, but Details button also greyed out when selecting Compress instead. Anyone got an idea how to...
System Security
How to encrypt .zip file that will be readable from the program
Hello, I have a zip file inside in a navigation program. The .zip file contanins some files in UTF-8 format and some in Ansi format. When the navi run, it goes and read the .zip file and use it while the navi run. The problem: I want to hide (or to encrypt) some files inside the .zip file...
System Security
How do I encrypt my HDD? And also need more help.
Hello, I am a new user here, I have a two HDDs. I want to know the procedure for encrypting my hdd. Here are also few things that I also want to know: 1. If i do encryption on my hdd, can a virus/malware/Trojan affect that HDD or not. 2. Also if i do encryption can I download things from...
System Security
How to encrypt a file or folder on Win 7 Pro ?
Is there a way to encrypt a file or folder on Win 7 Pro 64bit ? I would like to keep all my passwords and/or account logins for all my on line activity somewhere on the PC so I don't have to setup a new password/login every time I can't remember what password goes with what on-line account ? ...
Performance & Maintenance
Encrypt
I'm running Windows 7 and I go to Properties, Advanced and it won't let me encrypt a file, folder, picture, it's grayed out, but I don't know why?
General Discussion
Which folders to encrypt with EFS
Are there any folders that should be encrypted, for example temp folder and such?
System Security

Our Sites

Site Links

About Us

Find 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 07:23.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App