Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #93689

Re: Trouble getting to windows My Documents directory

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'skip:[ 20': 0.03; 'desired.': 0.07; 'subject:getting': 0.07; '"my': 0.09; 'cookies': 0.09; 'message-id:@4ax.com': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'skip:[ 30': 0.09; 'skip:[ 40': 0.09; 'tab': 0.09; '>on': 0.16; 'in...': 0.16; 'locations:': 0.16; 'noble': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'skip:[ 50': 0.16; 'skip:[ 60': 0.16; 'subject:windows': 0.16; 'tab,': 0.16; 'xxx"': 0.16; 'wrote:': 0.16; 'bytes': 0.18; 'exists': 0.18; 'url:home': 0.18; 'settings': 0.20; 'versions': 0.20; 'windows': 0.20; '2015': 0.20; 'sat,': 0.23; 'properties': 0.24; 'header:X-Complaints-To:1': 0.26; 'chris': 0.26; '----': 0.27; '+0200,': 0.27; 'transition': 0.27; 'actual': 0.28; "i'd": 0.31; 'software,': 0.32; 'language.': 0.32; 'older': 0.32; 'point': 0.33; 'open': 0.33; 'skip:- 10': 0.34; 'file': 0.34; 'skip:c 30': 0.35; 'displays': 0.35; 'downloads': 0.35; 'templates': 0.35; 'but': 0.36; 'there': 0.36; 'mode': 0.36; 'volume': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'sources': 0.37; 'files': 0.38; 'data': 0.39; 'application': 0.39; 'to:addr:python.org': 0.40; 'documents': 0.61; 'digital': 0.63; 'necessarily': 0.63; 'guaranteed': 0.67; 'foreign': 0.69; 'serial': 0.70; 'jul': 0.72; 'pictures': 0.75; 'music': 0.78; 'completion': 0.79; '11:07': 0.84; 'directory:': 0.84; 'ebooks': 0.84; 'editions': 0.84; 'dennis': 0.91; 'received:108': 0.93; 'movies': 0.96
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: Trouble getting to windows My Documents directory
Date Sat, 11 Jul 2015 11:47:41 -0400
Organization IISS Elusive Unicorn
References <mstorkamp-154B4A.09272010072015@88-209-239-213.giganet.hu> <20150710094607.66e62712@bigbox.christie.dr> <1436574244.1600780.320804625.4F9C0CE1@webmail.messagingengine.com> <CAMw+j7J8Ho9km5NH0iaofBnV4VyAZ7FLfbYxHpeJ9JCL6nJHDQ@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host adsl-108-79-217-115.dsl.klmzmi.sbcglobal.net
X-Newsreader Forte Agent 6.00/32.1186
X-No-Archive YES
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.425.1436629661.3674.python-list@python.org> (permalink)
Lines 129
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1436629661 news.xs4all.nl 2905 [2001:888:2000:d::a6]:45634
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:93689

Show key headers only | View raw


On Sat, 11 Jul 2015 09:28:26 +0200, Chris Warrick <kwpolska@gmail.com>
declaimed the following:

>On 11 July 2015 at 02:24,  <random832@fastmail.us> wrote:
>> The My Documents directory is not guaranteed to be named "Documents". On
>> older versions of windows it was "My Documents", and on foreign versions
>> of windows it is a name in their language.
>
>That’s not necessarily “older”.
>
>Windows XP/7/8: My Documents
>Windows Vista/8.1: Documents
>
	On Win7, it DISPLAYS as "My Documents", but it exists as "Documents" in
the actual file system and on the command-line.

(snipped for brevity)

PS C:\Users\Wulfraed> ls

    Directory: C:\Users\Wulfraed

Mode                LastWriteTime     Length Name
----                -------------     ------ ----
d-r--          7/5/2015  10:40 PM            Documents
d-r--          7/4/2015  11:07 AM            Downloads

d-r--         3/12/2015   7:54 PM            Music

d-r--         3/12/2015   7:54 PM            Pictures

d-r--         3/12/2015   7:54 PM            Videos

PS C:\Users\Wulfraed>

	If I open that same directory using the Windows Explorer, I see a
cluster of

My Documents
My Music
My Pictures
My Videos

	Opening properties for those makes available a "Location" tab, by which
one can set the "My xxx" to /any/ directory desired.

	For easing transition of old software, there ARE hidden "junction
points" in the file system that redirect to the new locations:

C:\Users\Wulfraed\Documents>dir my*
 Volume in drive C is OS
 Volume Serial Number is 2004-C3FA

 Directory of C:\Users\Wulfraed\Documents

06/11/2015  08:18 AM    <DIR>          My Barnes & Noble eBooks
06/09/2013  07:39 PM    <DIR>          My Data Sources
06/09/2013  05:01 PM    <DIR>          My Digital Editions
12/19/2013  09:19 PM    <DIR>          My Downloads
06/05/2015  09:05 AM    <DIR>          My eBooks
06/09/2013  07:44 PM    <DIR>          My Garmin
06/09/2013  07:44 PM    <DIR>          My Movies
06/09/2013  07:45 PM    <DIR>          My Scanner Data Files
               0 File(s)              0 bytes
               8 Dir(s)  1,499,112,079,360 bytes free

C:\Users\Wulfraed\Documents>dir /AL
 Volume in drive C is OS
 Volume Serial Number is 2004-C3FA

 Directory of C:\Users\Wulfraed\Documents

06/01/2013  03:45 PM    <JUNCTION>     My Music [C:\Users\Wulfraed\Music]
06/01/2013  03:45 PM    <JUNCTION>     My Pictures
[C:\Users\Wulfraed\Pictures]
06/01/2013  03:45 PM    <JUNCTION>     My Videos [C:\Users\Wulfraed\Videos]
               0 File(s)              0 bytes
               3 Dir(s)  1,499,112,079,360 bytes free

C:\Users\Wulfraed\Documents>cd ..

C:\Users\Wulfraed>dir /AL
 Volume in drive C is OS
 Volume Serial Number is 2004-C3FA

 Directory of C:\Users\Wulfraed

06/01/2013  03:45 PM    <JUNCTION>     Application Data
[C:\Users\Wulfraed\AppData\Roaming]
06/01/2013  03:45 PM    <JUNCTION>     Cookies
[C:\Users\Wulfraed\AppData\Roaming\Microsoft\Wind
ows\Cookies]
06/01/2013  03:45 PM    <JUNCTION>     Local Settings
[C:\Users\Wulfraed\AppData\Local]
06/01/2013  03:45 PM    <JUNCTION>     My Documents
[C:\Users\Wulfraed\Documents]
06/01/2013  03:45 PM    <JUNCTION>     NetHood
[C:\Users\Wulfraed\AppData\Roaming\Microsoft\Windows\Network Shortcuts]
06/01/2013  03:45 PM    <JUNCTION>     PrintHood
[C:\Users\Wulfraed\AppData\Roaming\Microsoft\Windows\Printer Shortcuts]
06/01/2013  03:45 PM    <JUNCTION>     Recent
[C:\Users\Wulfraed\AppData\Roaming\Microsoft\Windows\Recent]
06/01/2013  03:45 PM    <JUNCTION>     SendTo
[C:\Users\Wulfraed\AppData\Roaming\Microsoft\Windows\SendTo]
06/01/2013  03:45 PM    <JUNCTION>     Start Menu
[C:\Users\Wulfraed\AppData\Roaming\Microsoft\Windows\Start Menu]
06/01/2013  03:45 PM    <JUNCTION>     Templates
[C:\Users\Wulfraed\AppData\Roaming\Microsoft\Windows\Templates]
               0 File(s)              0 bytes
              10 Dir(s)  1,499,112,079,360 bytes free

C:\Users\Wulfraed>
C:\>dir "Users\Wulfraed\My Documents"
 Volume in drive C is OS
 Volume Serial Number is 2004-C3FA

 Directory of C:\Users\Wulfraed\My Documents

File Not Found

C:\>

	I'd like to point out that I did NOT type the My Documents; I type My
and tab completion found the junction point name to fill in...

-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Trouble getting to windows My Documents directory Mark Storkamp <mstorkamp@yahoo.com> - 2015-07-10 09:27 -0500
  Re: Trouble getting to windows My Documents directory Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-10 15:47 +0100
  Re: Trouble getting to windows My Documents directory Laura Creighton <lac@openend.se> - 2015-07-10 17:11 +0200
  Re: Trouble getting to windows My Documents directory MRAB <python@mrabarnett.plus.com> - 2015-07-10 16:12 +0100
    Re: Trouble getting to windows My Documents directory Mark Storkamp <mstorkamp@yahoo.com> - 2015-07-10 10:25 -0500
      Re: Trouble getting to windows My Documents directory Rustom Mody <rustompmody@gmail.com> - 2015-07-10 10:48 -0700
        Re: Trouble getting to windows My Documents directory Rustom Mody <rustompmody@gmail.com> - 2015-07-10 10:56 -0700
  Re: Trouble getting to windows My Documents directory Tim Chase <python.list@tim.thechases.com> - 2015-07-10 09:46 -0500
  Re: Trouble getting to windows My Documents directory random832@fastmail.us - 2015-07-10 20:24 -0400
  Re: Trouble getting to windows My Documents directory Chris Warrick <kwpolska@gmail.com> - 2015-07-11 09:28 +0200
  Re: Trouble getting to windows My Documents directory Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-07-11 11:47 -0400
  Re: Trouble getting to windows My Documents directory random832@fastmail.us - 2015-08-01 02:50 -0400

csiph-web