Welcome Guest!
 VirtualPascal
 Previous Message All Messages Next Message 
Re: [vpascal] Filemode while reading from Novell share  Juergen Heuser
 Sep 09, 2004 10:38 PDT 

Hello Juergen,

 in my program I wanted to copy a file from a novell server but
I am always getting ioresult=5 (I think that's sharing violation)
after reset(f). Novell rights are read and filescan on this directory/file.
I can read the content of the file with other programs like viewers
but not with my program. I tried to change the filemode variable to

FileMode := open_access_ReadWrite;

or explicitly setting it to the default of

FileMode := open_access_ReadWrite OR open_share_DenyNone; // $42

but not change. Anbody knows how to overcome this or how to set FileMode?

ioresult=5 is acces denied, it my be a sharing problem!

Are you shure, that your Novell-account has the right to write to
the drive? Are you allowed to copy the file with a CMD-Copy?

In my programs (Norton-Clone and others) I kann access all files
which are not opened explicitly with open_share_denynone by another
process (like system programs do (swapper.dat)).

I use FILEMODE =

Single_RO   = $90 ;    // my program is the only allowed and want read
Single_RW   = $92 ;    // my program is the only allowed and want read/write
Multi_RO    = $A0 ;    // any program can read, no one can write

RO_Multi_RW = $C0 ;    // i want read, all others can do what they want
RW_Multi_RO = $A2 ;    // i want read/write, all others can read

(Works with DOS and OS/2, Windoze not testet!)

Juergen
	
 Previous Message All Messages Next Message 
  Check It Out!

  Topica Channels
 Best of Topica
 Art & Design
 Books, Movies & TV
 Developers
 Food & Drink
 Health & Fitness
 Internet
 Music
 News & Information
 Personal Finance
 Personal Technology
 Small Business
 Software
 Sports
 Travel & Leisure
 Women & Family

  Start Your Own List!
Email lists are great for debating issues or publishing your views.
Start a List Today!

© 2001 Topica Inc. TFMB
Concerned about privacy? Topica is TrustE certified.
See our Privacy Policy.