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?


torrid333Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.