Grrr... Universal descriptor for My Documents?
#3
Scooby Regular
Join Date: Nov 2003
Location: where the wild roses grow
Posts: 5,122
Likes: 0
Received 0 Likes
on
0 Posts
Got mental block on this one so would someone kindly save my sanity?
Need to know what the universal address for the My Documents folder is - the one you can use on any WinPC to bring up the Docs folder - no matter where on that particular PC it happens to be located, in the same way that %windir% will bring up the Windows folder, no matter where it is...
Anyone, please?!
Need to know what the universal address for the My Documents folder is - the one you can use on any WinPC to bring up the Docs folder - no matter where on that particular PC it happens to be located, in the same way that %windir% will bring up the Windows folder, no matter where it is...
Anyone, please?!
#4
Scooby Regular
Join Date: Sep 2003
Location: Isle of Wight
Posts: 2,720
Likes: 0
Received 0 Likes
on
0 Posts
#7
Find the variables defined using the SET command in cmd.
A way to get to the docs folder is something like
cd "%HOMEPATH%\My Documents"
But if the My documents folder is mapped to a network share then this wont work or you get the local folder.
hth
H
A way to get to the docs folder is something like
cd "%HOMEPATH%\My Documents"
But if the My documents folder is mapped to a network share then this wont work or you get the local folder.
hth
H
Trending Topics
#8
9x eek.. can't even remember how that works lol..
Under 9x I think no matter who is logged in the folder is always c:\my documents ? or where ever if u have changed it?
ps, what a horrible os
Under 9x I think no matter who is logged in the folder is always c:\my documents ? or where ever if u have changed it?
ps, what a horrible os
#9
Scooby Regular
Join Date: Nov 2003
Location: where the wild roses grow
Posts: 5,122
Likes: 0
Received 0 Likes
on
0 Posts
Yeah, I know. Trouble is I've got to write an app that works on 9x as well as the NT based OSes as the organisation who will use it are migrating slowly to XP as they replace old PC's with new ones.
As you say, it's always C:\My Documents in 9x, but I want the app to work transparently no matter which OS it's running on, hence me needing to know what the universal descriptor was. Saves writing one chunk of code for 9x and another for XP.
As you say, it's always C:\My Documents in 9x, but I want the app to work transparently no matter which OS it's running on, hence me needing to know what the universal descriptor was. Saves writing one chunk of code for 9x and another for XP.
Thread
Thread Starter
Forum
Replies
Last Post