Robocopy - Suppress output of dashed lines

Abstract: Use /NFL and /NDL flags to suppress dashed separator lines in Robocopy output.

Created: 2026-08-03 by
To suppress the dashed separator lines in Robocopy output, you must use the /NFL (No File List) and /NDL (No Directory List) flags. These options tell the utility to omit detailed progress information for individual files and folders, leaving only the summary statistics and any error messages visible in the console.

Understanding Robocopy Output Formatting

When running robocopy without specific formatting arguments, the tool provides verbose feedback by default. This includes a header section with job details, followed by repeated blocks of data separated by long dashed lines. Each block typically lists the source file name, the destination path, and status codes such as New File or Updated File. While this verbosity is helpful for debugging specific transfer issues, it creates clutter when logging backups to a file or monitoring large-scale operations via a script.

The dashed lines are generated because Robocopy outputs two distinct lists: the directory list and the file list. By default, both are printed between every batch of copied items. To achieve a clean, minimal output that resembles a simple log entry rather than a full diagnostic trace, you need to disable these specific output streams. The most common approach involves combining several flags that target different aspects of the reporting mechanism.

Why Dashed Lines Appear

The visual separators exist to delineate the processing of directories from the processing of files. When Robocopy enters a new folder, it prints the directory structure. It then iterates through the contents, printing each file's status. Without suppression flags, these two types of entries interleave, creating the repetitive pattern of headers, dashes, and footers that characterizes standard Robocopy execution. For automated scripts or scheduled tasks, this noise makes parsing the output difficult and wastes disk space if redirected to a log file.

Using /NFL and /NDL Flags

The primary solution involves adding the /NFL and /NDL switches to your command line. The /NFL flag stands for "No File List," which prevents Robocopy from displaying the names of individual files being copied. The /NDL flag stands for "No Directory List," which stops the tool from printing the directory paths and subfolder structures during the copy process.

  • /NFL: Suppresses the output of file names and their attributes.
  • /NDL: Suppresses the output of directory names and their attributes.

When you combine these two flags, Robocopy skips the detailed listing phase entirely. Instead of showing every file and folder, it jumps straight to the final summary at the end of the operation. This drastically reduces the volume of text produced, eliminating the dashed lines that separate these lists. You can apply these flags alongside other standard parameters like /E (copy subdirectories, including empty ones) or /Z (restartable mode) without affecting the actual copying behavior.

Complete Command Example

Below is a typical command structure that uses these flags to produce clean output. Replace the source and destination paths with your actual directories.

robocopy "C:\SourceFolder" "D:\BackupFolder" /E /NFL /NDL /R:1 /W:1

In this example, /E ensures all subdirectories are included. /R:1 limits retries to one attempt, and /W:1 sets the wait time between retries to one second. The critical components for suppressing output are /NFL and /NDL. With these present, the console will remain quiet during the transfer, displaying only the initial job header and the final summary table. This is particularly useful when integrating Robocopy into larger PowerShell scripts or batch files where intermediate progress updates are unnecessary.

If you also wish to suppress the display of skipped files, which can sometimes appear in the output even with /NFL, you can add the /NS (No Size) and /NC (No Class) flags. However, for most backup scenarios, /NFL and /NDL are sufficient to remove the visual clutter and dashed separators.

Logging Clean Output

One of the most common reasons to suppress output is to generate a clean log file for auditing purposes. You can redirect the output of the suppressed command to a text file using the /LOG: parameter. This ensures that the resulting log file contains only the essential summary data, making it easier to review later or parse with regular expressions.

robocopy "C:\SourceFolder" "D:\BackupFolder" /E /NFL /NDL /LOG:C:\Logs\BackupLog.txt

This approach creates a highly readable record of the backup job. The log will show the start time, end time, number of files copied, and any errors encountered, without the thousands of lines of file-by-file details. If you want to append to an existing log rather than overwriting it, use /LOG+ instead. This method is ideal for long-running backups where you need a historical record but do not require real-time visibility into every single file transfer.

For more advanced scenarios involving complex directory structures, consider reviewing strategies for avoiding infinite duplication to ensure your cleanup logic does not interfere with your output expectations.

Frequently Asked Questions

Does using /NFL hide error messages?

No, the /NFL flag only suppresses the list of successfully processed files. Error messages, warnings, and exceptions will still be displayed in the console or logged file. This allows you to identify failed transfers or permission issues while keeping the rest of the output clean.

Can I suppress the summary statistics too?

Robocopy does not have a flag to completely silence the final summary table. Even with /NFL and /NDL, the tool prints a summary of bytes copied, files copied, and elapsed time at the end of the job. If you need absolute silence, you would need to redirect the entire output to NUL, but this is generally not recommended for troubleshooting.

What is the difference between /NFL and /NJH?

/NFL removes the file list from the middle of the output. /NJH removes the Job Header, which is the section at the very beginning that displays the source, destination, and options used. Using both results in a minimal output containing only the final summary and any errors.

How do I handle empty directories with these flags?

Using /NFL and /NDL does not change how Robocopy handles empty directories. If you use /E, empty directories are still created at the destination. The flags only affect what is printed to the screen, not the structural integrity of the backup.

Are there alternatives to Robocopy for silent backups?

PowerShell cmdlets like Copy-Item or third-party tools like FreeFileSync offer quieter defaults. However, Robocopy remains preferred for its resume capability and robust error handling. If you switch to PowerShell, you can simply suppress output by assigning the result to a variable or using $null, though this requires more scripting effort.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More