Batch-File does not work

Get help for specific problems
Posts: 7
Joined: 9 May 2020

fishrain

Hello,

I'm using macOS Ventura and I wand to sync a folder of my Mac to a network folder (located on my NAS in the local network).

So if I want to do this in the app everything works fine
Bildschirmfoto 2023-01-28 um 21.29.37.png
Bildschirmfoto 2023-01-28 um 21.29.37.png (165.69 KiB) Viewed 221 times
its the german version but you can see the target of the mirror backup job: /Volumes/FreeFile Sync/Zimmer 1
If I save the job as a batch file and I double-click the batch file I'll get this error (see the screenshot below)

translated to english: the following folder could not be found /Volumes/FreeFile Sync/Zimmer 1
The file attributes of /Volumes/FreeFile Sync/Zimmer 1 could not be read

How can I fix this ?

Rainer
Attachments
Bildschirmfoto 2023-01-28 um 21.28.39.png
Bildschirmfoto 2023-01-28 um 21.28.39.png (115.05 KiB) Viewed 221 times
Posts: 7
Joined: 9 May 2020

fishrain

I was able to narrow down the problem a bit:

The batch file works if I open the finder windows of /Volumes/FreeFile Sync/Zimmer 1

so the content of the folder which wants to be synchronized hast to be open in finder ....then the batch file works

It will not work if I only use "connect to server" im macOS
Posts: 1038
Joined: 8 May 2006

therube

I have no idea about Mac, but if you add a closing slash, or enclose in quotes, does that make any difference?

/Volumes/FreeFile Sync/Zimmer 1/
"/Volumes/FreeFile Sync/Zimmer 1"
"/Volumes/FreeFile Sync/Zimmer 1/"