• Problem with copying files

    From Krystian@21:1/5 to All on Mon Jul 31 07:10:43 2023
    Please help me to understand the reason of such error message which occur during copying files :
    Application: \\Serwer-progman\kadry_place\Soft-B\Kadry_Płace\place.exe

    Error message:
    --------------
    Error Code: 21 [ ]
    Subsystem: BASE
    Error Subcode: 2012
    Function: COPYFILE
    Filename: \\Serwer-progman\kadry_place\Soft-B\Kadr

    The source looks like this
    IF FCopy(plik, nowy)
    where "plik" and "nowy" are locals strings.

    It works correct for many years and suddenly such strange problem.
    Where can i find the explanation of error codes ?

    With regards
    Thank you in advance
    Krystian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jamal@21:1/5 to Krystian on Mon Jul 31 21:31:17 2023
    The system error codes are listed amongst others at:

    https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-

    The error 21 means "Device is not ready". Since you are using a UNC
    path, your connection may have dropped at some point and is not
    reliable. I suggest your test the network connectivity.

    Jamal

    On 7/31/2023 10:10 AM, Krystian wrote:
    Please help me to understand the reason of such error message which occur during copying files :
    Application: \\Serwer-progman\kadry_place\Soft-B\Kadry_Płace\place.exe

    Error message:
    --------------
    Error Code: 21 [ ]
    Subsystem: BASE
    Error Subcode: 2012
    Function: COPYFILE
    Filename: \\Serwer-progman\kadry_place\Soft-B\Kadr

    The source looks like this
    IF FCopy(plik, nowy)
    where "plik" and "nowy" are locals strings.

    It works correct for many years and suddenly such strange problem.
    Where can i find the explanation of error codes ?

    With regards
    Thank you in advance
    Krystian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Krystian@21:1/5 to All on Wed Aug 2 02:12:17 2023
    wtorek, 1 sierpnia 2023 o 03:31:19 UTC+2 Jamal napisał(a):
    The system error codes are listed amongst others at:

    https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-

    The error 21 means "Device is not ready". Since you are using a UNC
    path, your connection may have dropped at some point and is not
    reliable. I suggest your test the network connectivity.

    Jamal
    On 7/31/2023 10:10 AM, Krystian wrote:
    Please help me to understand the reason of such error message which occur during copying files :
    Application: \\Serwer-progman\kadry_place\Soft-B\Kadry_Płace\place.exe

    Error message:
    --------------
    Error Code: 21 [ ]
    Subsystem: BASE
    Error Subcode: 2012
    Function: COPYFILE
    Filename: \\Serwer-progman\kadry_place\Soft-B\Kadr

    The source looks like this
    IF FCopy(plik, nowy)
    where "plik" and "nowy" are locals strings.

    It works correct for many years and suddenly such strange problem.
    Where can i find the explanation of error codes ?

    With regards
    Thank you in advance
    Krystian

    Hi Jamal,

    Thank you very much for your help and fast answer. It is shame for me, but i do not realize, that the cavo error codes refer to windows system error codes.
    Do you know, where may i resolve the meaning of the error subcode ?

    Once again thanks very much
    With regards
    Krystian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jamal@21:1/5 to Krystian on Wed Aug 2 22:53:24 2023
    Unfortunately, the VO documentation does not discuss error SubCode or
    Error Code.

    You may download the Microsoft Error Lookup Tool: Err_6.4.5.exe

    https://learn.microsoft.com/en-us/windows/win32/debug/system-error-code-lookup-tool

    It is easiest to download to Windows\System32 folder, so it's available
    at the DOS Command prompt.

    For example:

    Err_6.4.5.exe 21

    Then you will get a list of all possible issues.

    BTW, try using the CopyFile() https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-copyfile

    Then check for if successfull. If there is an error, call the Win32 GetLastError(). Even better, if include the Tools library in your app,
    then you can use VOGetLastErrorMessage() which return a description of
    the error (hopefully).


    HTH,
    Jamal

    On 8/2/2023 5:12 AM, Krystian wrote:
    wtorek, 1 sierpnia 2023 o 03:31:19 UTC+2 Jamal napisał(a):
    The system error codes are listed amongst others at:

    https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-

    The error 21 means "Device is not ready". Since you are using a UNC
    path, your connection may have dropped at some point and is not
    reliable. I suggest your test the network connectivity.

    Jamal
    On 7/31/2023 10:10 AM, Krystian wrote:
    Please help me to understand the reason of such error message which occur during copying files :
    Application: \\Serwer-progman\kadry_place\Soft-B\Kadry_Płace\place.exe

    Error message:
    --------------
    Error Code: 21 [ ]
    Subsystem: BASE
    Error Subcode: 2012
    Function: COPYFILE
    Filename: \\Serwer-progman\kadry_place\Soft-B\Kadr

    The source looks like this
    IF FCopy(plik, nowy)
    where "plik" and "nowy" are locals strings.

    It works correct for many years and suddenly such strange problem.
    Where can i find the explanation of error codes ?

    With regards
    Thank you in advance
    Krystian

    Hi Jamal,

    Thank you very much for your help and fast answer. It is shame for me, but i do not realize, that the cavo error codes refer to windows system error codes.
    Do you know, where may i resolve the meaning of the error subcode ?

    Once again thanks very much
    With regards
    Krystian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)