I wrote a VB program for our Digital Photo Archive. It allows investigators to assign pictures taken at a death scene or during an autopsy, etc. to case files. We want the application (which anyone can use) to be able to write FROM the digital camera media TO a SECURE directory that only a few can access.
Those of you that are familiar with Novell and Zen Works know that you can create an NDS Application object that has rights to directories and files that the user would not have rights to outside the application.
If I was programming for a Windows Peer to Peer setup, I could just share the directory with a password that could be “hard coded” in my program to map the directory like so:
shell(“net use R: PhotoDir Password”) and then access the photos using the share.
Unfortunately the files I need my app to access are on a W2K Server. The users are on Windows 98 workstations. The Windows 98 NET USE command does not allow a username as a parameter as the W2K NET USE commanddoes.
I downloaded countless Platform SDK files and ADSI files, etc. I found nothing that would allow my app to supply a logon to a directory.
Now my program saves the files to a directory that everyone has access to and then another programon a computer with a user called “photo” that has WR rights to 2 directories moves them to a second directory that is secure. I thought of using the FTP server that comes with W2K, but it also uses W2K USER authentication for access to directories. Also .. to my dismay, W2K does not allow you to create a directory that has only Write, modify, create & file scan rights. — Windows 2000 assumes if you give write & file scan rights that you also want to grant READ writes. I do not want to use a browser for access. I only want access possible through my application which can control the ability to print, copy or view the photos.