Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Disable editing a batch file
Name: ZAB Date: September 1, 2008 at 11:22:09 Pacific OS: XP CPU/Ram: - Product: 2400
Comment:
Hey, I just wrote a batch file, but i dont want people to go into notepad and edit the file. I still want the file to run, but i dont want i to be editied. Help me?
Name: Razor2.3 Date: September 1, 2008 at 18:40:38 Pacific
Reply:
Can't. If you want something hard to change, pick up a language with a complier.
0
Response Number 2
Name: IVO Date: September 2, 2008 at 01:14:12 Pacific
Reply:
A very raw way (and effective for dumb people only) is to set the batch file attributes to read-only and hidden. Store the file then issue
attrib +R +H File_Name
The batch still can run but is stealth and not editable.
0
Response Number 3
Name: Judago Date: September 2, 2008 at 01:23:14 Pacific
Reply:
There are some batch file "compilers" out there. A google search of "batch compiler" will bring up many.
Most of them just compress a text file and make an executable that essentially is a self extractable archive that contains a text file and a stub of code that runs the text as a batch file with cmd.exe. The text file is extracted to a temporary directory and is run from there.
If your trying to hide your "secret code" or passwords, ect. It would still be accessible to anyone savy enough, though in an uncompresed form in a temporary directory.
The better ones are pay for products, or leave a reminder screen on your batchfile until you pay for it.
Summary: I need to create a batch file that adds text to the last line in an .ini file. The .ini file is C:\boot.ini which usually looks like: [boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(...
Summary: I need a batch file that changes the following .txt file located in “C:\Program Files\Adobe\temp\a001day\cram32\index.txt” the batch file will be placed in “C:\Program Files\Adobe”. The index ...
Summary: Batch script: :: Code begins... @echo off setlocal enabledelayedexpansion cls set inputfile=path\filename.ext set /p hex=<%inputfile% echo.&echo.&echo.&echo. set /p one= Enter new valu...