By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,940 Members | 614 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,940 IT Pros & Developers. It's quick & easy.

defaulting to my documents folder

P: n/a
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
Nov 12 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
TC
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

Nov 12 '05 #2

P: n/a
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

Nov 12 '05 #3

P: n/a
TC
Maybe there is something available from Windows Scripting Host? (if the
users will have WSH on their PCs)

HTH,
TC
"Mong" <mo*********@yahoo.com.au> wrote in message
news:47**************************@posting.google.c om...
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

Nov 12 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.