• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 433
  • Last Modified:

VB6 SHGetFolderPath for network shares

Our VB6 app uses SHGetFolderPath to get CSIDL_PERSONAL for the users documents... to then store their data files there.

We have a company in a corporate environment that has mapped Documents in Windows 7 to:

\\capfs01\usersname$

which is a network share....

When we try to read or write that path it does not work....
We are using FileSystemObject .... should that automatically handle these weird network share paths in Windows 7 and Windows 2008?


0
torrid333
Asked:
torrid333
  • 3
  • 3
1 Solution
 
cyberdaddyCommented:
The chances are that there is an NTFS file permission or share permission problem above the actual share.  Depending on how you're referencing the folder itself (not just the path) to read and write data.  If for example:

your NTFS root has DOMAIN_USERS to READ ONLY, and below that a few levels you have a share called \\server\share$, you're probably focusing all attention on the permissions and security for "share$" and not the parent folder security itself.  The reason this is important is because of how your software/program/app is referencing the final end-point "share$"

does that make sense?
0
 
torrid333Author Commented:
Yes it does to me... but I did not set up these shares... just a customer I'm talking to over the phone....

They claim though that there is no problem with any other apps.... and he claims that they have "full permissions" on the share.... so maybe they do on the share but not higher up the chain?

It thought you could hone in on permissions at a folder level even if you have zero access rights to anything above it????
0
 
cyberdaddyCommented:
You said:  "It thought you could hone in on permissions at a folder level even if you have zero access rights to anything above it????"

My reply:  You can hone in directly into the folder without permissions to the folders above it, however if your share is:  \\server\share$ and the real path is C:\Public\Shares\webshares <<< share$; and you have a second share called Public$ so that both \\server\Public$ and \\server\share$ are directly in the same path, but with different permissions...and your software is referencing \\server\Public$ but navigating itself into "share$" from the Public$ relative navigation point, then permissions of the parent folder matter.

I can re-write this, but hope you get the point that there may be a secondary share with restrictions and that your software is actually pointing to the other share and navigating itself into the second share starting from the first....whewww!!!

:)
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
torrid333Author Commented:
I cannot confirm whether either of this are the solution or help.... client could not get it to work... we still don't know the solution.... I do believe he was going to delve deeper into this permissions issue though....

Not sure what to do at this point.  I can gladly assign some split points but then I still don't have an answer to the issue.
0
 
cyberdaddyCommented:
Please do.
0
 
torrid333Author Commented:
EE is supposed to help us find answers... deleting questions does not help.
I can understand if someone solves the problem and the receiver does not bother to award the points... that's unfair and should be forced...
But when a question needs to stay in db in case someone else knows the answer... forcing a delete is not the solution... especially when I am paying you monthly for my EE account.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now