OpenBCM V1.07b12 (Linux)

Packet Radio Mailbox

DB0FHN

[JN59NK Nuernberg]

 Login: GUEST





  
ZL1ANM > TECH     17.12.05 14:59l 48 Lines 1853 Bytes #999 (0) @ WW
BID : ZL1ANM119
Read: GUEST DL1LCA OE7FMI
Subj: Re: A programming problem
Path: DB0FHN<DB0NOE<DB0GAP<DB0FSG<DB0MRW<DB0WUE<DK0WUE<DB0RES<ON0AR<IK1ZNW<
      IW8PGT<CX2SA<VK4TRS<ZL2BAU<ZL2WA<ZL1AB
Sent: 051217/0223Z @:ZL1AB.#11.NZL.OC #:32575 [AUCKLAND] FBB7.00i $:ZL1ANM119
From: ZL1ANM@ZL1AB.#11.NZL.OC
To  : TECH@WW

>VK2ZRG/TPK 1.83d Msg #:1840  Date:16-12-05  Time:5:55Z
>
>Hello programmers,
>                  I was trying out my latest programme called TPK-LIST on
>the windoze test box and found that I was getting an error when the 
>programme tried to backup a file by renaming it. There was no error
>reported when the programme was run under DOS. The error value was 5
>which is "File access denied".
>
>  I tried IBM DOS 6.0, DOS 7.1 AKA win98, and DOS 8.0 AKA win_me, and didn't
>get an error message with any DOS version. My windoze test box has win_me
>as the OS. The problem was found to be, that the file that was being renamed
>was still open. I know I should have closed it first, but I forgot.
>  The problem is fixed now with the addition of a close file statement.
>
>  Has anyone a suggestion as to why I didn't get an error reported when
>the programme was running in DOS?  
>
>  My MS DOS programmers Manual does say that the file shouldn't be open
>if it is to be renamed, so one would expect to get a DOS error if it was;
>but it didn't give one! It does give the usual error values for other
>goofs like trying to write to a file that's not open etc.
>
>Thanks in advance for any suggestions.
>
>73s from Ralph VK2ZRG@VK2WI.#SYD.NSW.AUS.OC



Most likely, DOS allowed the renaming of an already-open file although
as the Manual points out, it is good practice to close it first.
So perhaps DOS didn't specifically forbid renaming an open file.

When the later versions of Windows were introduced, Microsoft probably
moved to plug the loophole, generating an error message if the process
was attempted.

My DOS 3.3 Manual gives no caveat against renaming a file, implying
that you can do so even if it is already open.

73 de Neil ZL1ANM

                                                 NBF 2.08



Read previous mail | Read next mail


 07.10.2024 09:22:52lGo back Go up