ERROR_BAD_NETPATH

Get help for specific problems
Posts: 4
Joined: 26 Mar 2025

Paris71

I use to backup my files on schedule from laptop to NAS through a batch job + windows task manager

It stopped working with version 14.2 and delivers the following error:
--------------
Cannot find the following folders:
\\ASUS\...
___________________________________________
Cannot read file attributes of "\\ASUS\...".
ERROR_BAD_NETPATH: Le chemin réseau n’a pas été trouvé. [GetFileAttributes]
----------------

But, according to windows task manager, the task was performed correctly (the software is launched)

Moreover, the same backup works well if I start it manually (that is, the folders are found and the files backuped properly)

Your suggestions are welcome!
User avatar
Posts: 4866
Joined: 11 Jun 2019

xCSxXenon

When you created the Task, did you select "Run whether the user is logged on or not"
Posts: 4
Joined: 26 Mar 2025

Paris71

Thanks

I did. The problem has changed to 'Error code 0x520' and the task failed to execute. I did not enter the password since it is a local network
User avatar
Posts: 4866
Joined: 11 Jun 2019

xCSxXenon

I would try disabling that option and trying again
Posts: 4
Joined: 26 Mar 2025

Paris71

Thanks for your cooperation. I tried

This is the new error:
-------------

Cannot find the following folders:
\\ASUS\...
___________________________________________
Unable to connect to "\\ASUS\...".
ERROR_INVALID_PASSWORD: Le mot de passe réseau spécifié est incorrect. [WNetAddConnection2]
Password prompt not permitted by current settings.

-------------------

Your suggestions are welcome !
User avatar
Posts: 2946
Joined: 22 Aug 2012

Plerry

Login to your Windows machine with the (Windows) user credentials you run your FreeFileSync Scheduled Task under. (Make sure that user is not SYSTEM).
Then open the Credential Manager and create and save the user credentials (user/password) required for the \\ASUS network location.
User avatar
Site Admin
Posts: 7505
Joined: 9 Dec 2007

Zenju

Password prompt not permitted by current settings. Paris71, 02 Apr 2025, 15:53
This means the FFS batch job was set to run "without user interaction", which is assumed if "Auto-close" is enabled and also either "Ignore errors" or "Cancel".
Posts: 4
Joined: 26 Mar 2025

Paris71

Thanks! I did these amendments and added an 'automatic retry' with 'count' at 2 and several seconds of 'delay' between the two. It works now! Much appreciated