Thanks for that, but I'm just wondering is API the only way?
Was hoping I wouldn't have to add too much code as I won't be the one
looking after the app, most probably the user will so I don't want to
over complicate it.
"TC" <a@b.c.d> wrote in message news:<1067399787.554381@teuthos>...
Google on:
CSIDL_PERSONAL VBA
This will lead you to code that gets the pathname of the current user's My
Documents folder (where-ever that folder may be).
HTH,
TC
"Mong" <mo*********@yahoo.com.au> wrote in message
news:47**************************@posting.google.c om... Hi,
I have an application which has several hard coded references to
"C:\My Documents". Shortly our network setup will be changed so that a
users My Documents folder will be on a mapped network home drive, and
nothing will be written to the local C:.
So my question is, how do I explicitly code the path to the users My
Documents folder so that it will use it no matter where it's sitting
(whether it be on C: or a network drive)?
ie instead of "C:\My Documents\" something like "My Documents\"
Thanks in advance,
Mong