Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Grrr... Universal descriptor for My Documents?

Thread Tools
 
Search this Thread
 
Old 10 February 2003, 02:45 PM
  #1  
Figment
Scooby Regular
Thread Starter
 
Figment's Avatar
 
Join Date: Jul 2001
Location: deep inside your imagination
Posts: 24,057
Likes: 0
Received 0 Likes on 0 Posts
Post

%homepath%\mydocu~1 works as does %homepath%\My documents

[Edited by Figment - 10/2/2003 2:46:10 PM]
Old 10 February 2003, 04:30 PM
  #2  
greasemonkey
Scooby Regular
 
greasemonkey's Avatar
 
Join Date: Nov 2003
Location: where the wild roses grow
Posts: 5,122
Likes: 0
Received 0 Likes on 0 Posts
Post

Indeed it does (on XP at least). Got to see if it also works on 9x now. Thanks y'all!

[Edited by greasemonkey - 10/2/2003 4:32:09 PM]
Old 01 October 2003, 03:26 PM
  #3  
greasemonkey
Scooby Regular
 
greasemonkey's Avatar
 
Join Date: Nov 2003
Location: where the wild roses grow
Posts: 5,122
Likes: 0
Received 0 Likes on 0 Posts
Post

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?!
Old 01 October 2003, 10:53 PM
  #4  
zhastaph
Scooby Regular
 
zhastaph's Avatar
 
Join Date: Sep 2003
Location: Isle of Wight
Posts: 2,720
Likes: 0
Received 0 Likes on 0 Posts
Lightbulb

This may or may not help,

http://www.autoplaystudio.com/webhel..._Variables.htm
Old 02 October 2003, 08:21 AM
  #5  
ChristianR
Scooby Regular
iTrader: (1)
 
ChristianR's Avatar
 
Join Date: May 2001
Location: Europe
Posts: 6,329
Likes: 0
Received 1 Like on 1 Post
Post

%MyDocumentsDir%
Old 02 October 2003, 09:29 AM
  #6  
Figment
Scooby Regular
Thread Starter
 
Figment's Avatar
 
Join Date: Jul 2001
Location: deep inside your imagination
Posts: 24,057
Likes: 0
Received 0 Likes on 0 Posts
Post

XP says:





Old 02 October 2003, 02:07 PM
  #7  
HHxx
Scooby Regular
 
HHxx's Avatar
 
Join Date: Nov 2001
Posts: 2,576
Likes: 0
Received 0 Likes on 0 Posts
Post

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
Old 02 October 2003, 06:41 PM
  #8  
HHxx
Scooby Regular
 
HHxx's Avatar
 
Join Date: Nov 2001
Posts: 2,576
Likes: 0
Received 0 Likes on 0 Posts
Post

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
Old 02 October 2003, 11:05 PM
  #9  
greasemonkey
Scooby Regular
 
greasemonkey's Avatar
 
Join Date: Nov 2003
Location: where the wild roses grow
Posts: 5,122
Likes: 0
Received 0 Likes on 0 Posts
Post

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.
Old 03 October 2003, 02:02 AM
  #10  
HHxx
Scooby Regular
 
HHxx's Avatar
 
Join Date: Nov 2001
Posts: 2,576
Likes: 0
Received 0 Likes on 0 Posts
Lightbulb

Just use the %OS% descriptor?
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
Tidgy
Computer & Technology Related
33
18 October 2015 09:59 AM
Nick_Cat
Computer & Technology Related
2
26 September 2015 08:00 AM
Milan-San Remo
Subaru Parts
7
13 September 2015 08:43 PM
Squizz
ScoobyNet General
10
12 October 2000 06:56 PM



Quick Reply: Grrr... Universal descriptor for My Documents?



All times are GMT +1. The time now is 12:35 AM.