With the addition of JSON results, I wanted a way to parse the JSON without PowerShell. It seemed impossible, which is why I tried, and yes PowerShell is simpler. BUT, PowerShell is not necessarily guaranteed to be available. CMD also tends to run faster for simple things, this may have reached outside that scope...
Link to the code: GitHub
Click the "download raw file" button on the top-right of the file preview, after inspecting code of course.
You can run it without any arguments or '-h' to view the below helptext in the terminal window directly. Using the "ffs_KEYNAME" variables, you can omit or retain whatever you want and forward it into any other CLI utility 👍
It is prefilled with the default x64 path for FFS. You will need to edit it if your install location is different.
Submit an issue if you find one, shouldn't take long to iron it out but no guarantees. Feel free to check out the whole repository, containing a subset of my nifty scripts that I have crafted over the years to make life a bit faster.
Usage: "FreeFileSync JSON Parser.bat" <path> [-c] [-e [-f]] | -d
-h Displays this help text
-c Don't delete temporary working directory
-e Expand "startTime" into its date and time components
-f Format time to remove offset and append AM/PM. Only works with -e
-d Delete all previous temporary working directories
CMD/Batch Script JSON Parser - Download and Code
-
- Posts: 4867
- Joined: 11 Jun 2019