Hi,
I have a table with a field named [ImgagePath] that stores pictures of items. Images are stored on a folder in the server.
I have set up the folder to be completely public but not browsable, that means anyone can access the folder if he/she types in the path \\server\folder directly in the address bar of the Windows Explorer, but it will not be visible in the network browser. I did it this way so that, presumably, my code will save the user-selected images into that folder, from any computer in the LAN without having to login, and without users knowing where the images went.
But still, Windows will pop up an authentication dialog box whenever I try to access this folder in Explorer after a restart, and as for Access, it would simply say folder not found. At the authentication window, though, I could just type in any random characters as username and the folder will open, but still Windows insists on showing that authentication box the first time a user tries to access that folder. After an authentication with any username, Access would be able to save/view the images just fine.
So, obviously I need some way to authenticate by code. Maybe I can shell net use to achieve that, but I'd probably have to map a drive on the fly and then un-map it. Doesn't sound like a good method. Is there some other way to do this?
I have a table with a field named [ImgagePath] that stores pictures of items. Images are stored on a folder in the server.
I have set up the folder to be completely public but not browsable, that means anyone can access the folder if he/she types in the path \\server\folder directly in the address bar of the Windows Explorer, but it will not be visible in the network browser. I did it this way so that, presumably, my code will save the user-selected images into that folder, from any computer in the LAN without having to login, and without users knowing where the images went.
But still, Windows will pop up an authentication dialog box whenever I try to access this folder in Explorer after a restart, and as for Access, it would simply say folder not found. At the authentication window, though, I could just type in any random characters as username and the folder will open, but still Windows insists on showing that authentication box the first time a user tries to access that folder. After an authentication with any username, Access would be able to save/view the images just fine.
So, obviously I need some way to authenticate by code. Maybe I can shell net use to achieve that, but I'd probably have to map a drive on the fly and then un-map it. Doesn't sound like a good method. Is there some other way to do this?