Nf.zip File
:: This zips every .txt file in the folder into its own .zip file using 7-Zip FOR %%f IN (*.txt) DO 7z a "%%~nf.zip" "%%f" Use code with caution. Copied to clipboard %%f : The full filename (e.g., report.txt ). %%~nf : The name only (e.g., report ). %%~nf.zip : The resulting archive name (e.g., report.zip ). Other Interpretations Outside of technical scripting, "NF" may refer to: Create individual Zip files with a command line
: When combined with a /R flag, it allows a script to dive into subfolders, find specific file types, and zip them individually while preserving the original file names. Example Script Syntax NF.zip
: It is often used to group files that share a name but have different extensions (e.g., a .cue and .bin game file or .shp and .shx geographic data) into a single archive named after the base file. :: This zips every