Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #93689
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Subject | Re: Trouble getting to windows My Documents directory |
| Date | 2015-07-11 11:47 -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> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.425.1436629661.3674.python-list@python.org> (permalink) |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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