Filecopy sets errorlevel when copying tro a NAS

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
peter9999
Posts: 14
Joined: 13 Apr 2019, 08:11

Filecopy sets errorlevel when copying tro a NAS

30 Mar 2020, 08:23

Wrote script for managing my Backups to a NAS, but copying to a NAS with FileCopy doesn´t work and sets ErrorLevel to "1". I extracted the relevant code to

Code: Select all

Ziel2:="Q:\Sicherung"
Name:="Daten"
Ziel:="D:\Sicherung\Daten"
FileCopy, %Ziel%\Full_%Name%_TMP.sna, %Ziel2%\Full_%Name%_%A_YYYY%%A_MM%%A_DD%%A_Hour%%A_Min%.sna
ListVars
Pause
Q: is the NAS. Copying the same file to another location works fine, copying to the NAS from command window works also.

thx in advance!
peter
User avatar
flyingDman
Posts: 2832
Joined: 29 Sep 2013, 19:01

Re: Filecopy sets errorlevel when copying tro a NAS

30 Mar 2020, 10:32

Using filecopy on my Synology NAS works fine. Have you tried using the \\server\... address? This works here as well:

Code: Select all

filecopy, C:\Users\xxx\docs\test.txt ,\\myserver\xxxx\docs, 1
14.3 & 1.3.7
peter9999
Posts: 14
Joined: 13 Apr 2019, 08:11

Re: Filecopy sets errorlevel when copying tro a NAS

01 Apr 2020, 11:35

thx for the tip, it works now. :thumbup:
But: WHY does the former way NOT work??? :roll:

peter
User avatar
flyingDman
Posts: 2832
Joined: 29 Sep 2013, 19:01

Re: Filecopy sets errorlevel when copying tro a NAS

01 Apr 2020, 15:30

I do not know. I have had instances where I could not use the assigned drive letter and had to use the network address. That's the first that came to mind when I saw your post.
14.3 & 1.3.7

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], DaveF, Giresharu and 121 guests