File Sharing Problems

How to Automatically Copy Excel Files to a Shared Folder

Amos GikundaAmos Gikunda Nov 4, 2026 868 views

Question details

The user needs to automate the daily process of copying an Excel workbook from a local drive to a shared network folder without manual intervention.

How to Automatically Copy Excel Files to a Shared Folder
Product
Excel
Device & OS
Windows
Scenario
Backing up or distributing daily reports to a team by copying an Excel file from the local C: drive to a shared network destination.
Observed behavior
The file is currently being copied manually every day, and the user is looking for an automated scheduled solution using Windows Task Scheduler.
Before you start

Ensure you have the exact file paths for both your local source Excel file and the destination shared folder, and verify that your Windows user account has read and write permissions for the network location.

Solution 1Recommended

Automate File Copying Using a Batch Script and Task Scheduler

Create a simple batch script using the Windows command line and schedule it to run automatically every day using the built-in Task Scheduler.

Using a batch script is the most reliable way to handle scheduled file transfers natively in Windows without needing third-party software. You can use the standard 'copy' command, or 'robocopy' for more advanced network transfers.

1
Create the Batch Script

Open Notepad on your computer. Type the command: copy "C:\path\to\your\file.xlsx" "\\NetworkDrive\SharedFolder\". If you prefer a more robust tool, type: robocopy "C:\path\to" "\\NetworkDrive\SharedFolder" "file.xlsx".

2
Save as a .bat File

Click File > Save As. Change 'Save as type' to 'All Files'. Name your file something like 'CopyExcel.bat' and save it to an easily accessible location.

3
Test the Script

Double-click your newly created 'CopyExcel.bat' file. Verify that the Excel file was successfully copied to the shared destination folder.

4
Open Windows Task Scheduler

Press the Windows key, type 'Task Scheduler', and hit Enter to launch the application.

5
Schedule the Task

In the right-hand Actions pane, click 'Create Basic Task'. Name your task, set the trigger to 'Daily', choose 'Start a program' as the action, and browse to select your 'CopyExcel.bat' file. Click Finish to save the task.

Automate File Copying Using a Batch Script and Task Scheduler
Network Drive Availability: If the destination is a mapped network drive, ensure your computer is powered on and actively connected to the network at the time the scheduled task triggers.
Effortless Automation and Syncing

Easily Manage and Share Spreadsheets with WPS Office

WPS Spreadsheet offers powerful built-in VBA support and seamless cloud syncing tools, making it easy to automate file backups, write macros, and share your work effortlessly.

  1. 1. Download and Install: Download WPS Office for free and install it on your Windows device.
  2. 2. Enable Developer Tools: Open WPS Spreadsheet, go to the Developer tab, and use the built-in VBA editor to configure your automated backup scripts.
  3. 3. Utilize Cloud Sync: Alternatively, save your workbook directly to a shared WPS Cloud folder to automatically sync updates with your team, eliminating the need for Task Scheduler entirely.
Fully compatible with Microsoft Excel file formats (.xlsx, .xls, .xlsm, .csv).Robust VBA and Macro support for advanced automation and dual-saving scripts.Built-in WPS Cloud integration for automatic backups and real-time team sharing without complex scripts.Lightweight, fast, and free to use.
microsoft office alternative - wps office

Frequently Asked Questions

Can I use 'robocopy' instead of the standard 'copy' command?

Yes, 'robocopy' is highly recommended for network transfers because it is more robust, can automatically retry failed copies, and only copies updated files if configured correctly.

Why did my scheduled task fail to copy the Excel file?

Task failures are typically caused by permission issues. Ensure the scheduled task is set to 'Run with highest privileges' and that the Windows user account assigned to the task has write access to the destination shared folder.

Can I automate saving an Excel file to a SharePoint folder using a batch script?

Yes, if the SharePoint document library is synced to your local PC via Microsoft OneDrive, you can treat it as a standard local folder path in your batch script.