FileVerifier checks the files in the current directory if their identifying bytes are matching the expected bytes by their file extension.
- Make sure you have golang installed.
- Clone the repo or download the code as zip and extract.
- In the directory with main.go open a Terminal and run
go build.
-
Run
cp FileVerifier /usr/local/bin. (cp may need sudo permissions) -
Open a new Terminal window and confirm it works by running
FileVerifier.
-
Move the built executable (
FileVerifier.exe) to any location on your system where you'd like to keep it permanently. For example,C:\Tools\FileVerifier\. -
Add that location to your
PATHso you can run the tool from any terminal:- Press
Winand search for "Edit the system environment variables", then open it. - In the System Properties window, click Environment Variables.
- Under User variables (or System variables if you want it available for all users), find the variable named
Pathand select it, then click Edit. - Click New and paste in the folder path where you placed the executable (e.g.
C:\Tools\FileVerifier), just the folder, not the.exefile itself. - Click OK on all open windows to save.
- Press
-
Open a new terminal window (PowerShell or Command Prompt, existing windows won't pick up the change) and confirm it works by running:
FileVerifier