Question

Locked

"My Pictures" overriding folder name at command prompt

By CharlieSpencer ·
I am working with a folder at the command prompt. The folder's name as displayed in Windows Explorer is 'Security Photos' (without the quotes). Thanks to the infinite wisdom of the kids in Redmond, the name displayed when I do a DIR command from it's parent directory is 'My Pictures'. This is making it very difficult to test a command procedure batch file I'm working on, since I don't know exactly what to call the folder.

Any idea how to disable / override this apparent renaming?

This conversation is currently closed to new comments.

9 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Blatant bump. No text.

by CharlieSpencer In reply to "My Pictures" overriding ...
Collapse -

This any help

by Jacky Howe In reply to "My Pictures" overriding ...

I managed to be able to access security photos with these commands.


\MDocs>dir "D:\MDocs\My Pictures\Security Photos"
Volume in drive D is Data
Volume Serial Number is CC49-DD92

Directory of \MDocs\My Pictures\Security Photos

18/11/2009 06:11 AM .
18/11/2009 06:11 AM ..
18/11/2009 06:11 AM 0 New Text Document.txt
1 File(s) 0 bytes
2 Dir(s) 37,099,158,016 bytes free

\MDocs>cd\

\>dir "D:\MDocs\My Pictures\Security Photos"
Volume in drive D is Data
Volume Serial Number is CC49-DD92

Directory of \MDocs\My Pictures\Security Photos

18/11/2009 06:11 AM .
18/11/2009 06:11 AM ..
18/11/2009 06:11 AM 0 New Text Document.txt
1 File(s) 0 bytes
2 Dir(s) 37,099,158,016 bytes free

\>

Edit: it doesn't like < dir >

Collapse -

Not really.

by CharlieSpencer In reply to This any help

In your example, Security Photos isn't a sub of My Pictures. It's a sub of MDocs. If I do

\MDocs>dir

I see a subdirectory called 'My Pictures'. If I look at the MDocs directory via Windows Explorer, I see a sub called 'Security Photos'.

Sorry for a lack of screen shots; I'm updating this from home.

Collapse -

Bass Ackward super hidden?

by seanferd In reply to Not really.

What if you attrib rather than dir?

Collapse -

OK

by Jacky Howe In reply to Not really.

I've redirected My Documents folder to \MDocs

I then opened My Pictures and created the folder Security Photos

I wasn't aware that I couldn't do a dir on My Pictures and not have it pickup on \Security Photos until you brought it up.

At first the only way that I could get the information was to add \Security Photos to the command

I've temporarily moved My Documents back to C> and these are the dir results. Below is with a couple of switches thrown in. I can't get the folder to show up on drive even using the switches.

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C>dir "C:\Documents and Settings\Rob\My Documents"
Volume in drive C is base
Volume Serial Number is C4F1-E191

Directory of C:\Documents and Settings\Rob\My Documents

18/11/2009 12:54 PM < DIR > .
18/11/2009 12:54 PM < DIR > ..
18/11/2009 12:54 PM < DIR > My Music
18/11/2009 12:59 PM < DIR > My Pictures
18/11/2009 12:54 PM < DIR > My Videos
0 File(s) 0 bytes
5 Dir(s) 11,677,163,520 bytes free

C>


C>dir /s /o /a /b "C:\Documents and Settings\Rob\My Documents"
C:\Documents and Settings\Rob\My Documents\My Music
C:\Documents and Settings\Rob\My Documents\My Pictures
C:\Documents and Settings\Rob\My Documents\My Videos
C:\Documents and Settings\Rob\My Documents\desktop.ini
C:\Documents and Settings\Rob\My Documents\My Music\Desktop.ini
C:\Documents and Settings\Rob\My Documents\My Music\Sample Music.lnk
C:\Documents and Settings\Rob\My Documents\My Pictures\Security Photos
C:\Documents and Settings\Rob\My Documents\My Pictures\Desktop.ini
C:\Documents and Settings\Rob\My Documents\My Pictures\Sample Pictures.lnk
C:\Documents and Settings\Rob\My Documents\My Pictures\Security Photos\test
C:\Documents and Settings\Rob\My Documents\My Pictures\Security Photos\New Text Document.txt
C:\Documents and Settings\Rob\My Documents\My Videos\Desktop.ini

C>
What are the contents of your batch that you are trying to run.

Edit: < dir > got me again

Collapse -

Thanks to everyone, but I recreated it.

by CharlieSpencer In reply to OK

I moved the contents out, deleted it, recreated it, and moved everything back. Now the folder has the same name regardless of how I access it. I'm probably going to find some other folder has been assigned the 'My Pics' designation, but I'll deal with that when I find it. I don't normall

Jacky, the only thing in the batch file was an xcopy command:

net use r: \\server1\share
net use j: \\server2\share
xcopy "R:\Directory\Security Photos" J:\OtherDirectory

But from the command prompt I could only access "Security Photos" as "My Pictures". I've always regarded those "My xxx" folders as crutches for the directory-impaired; I feel the same way about W7's new 'Libraries': just another layer between me and the directory structure.

Collapse -

User friendly

by Jacky Howe In reply to Thanks to everyone, but I ...

Glad to see that uou have it sorted out.

Collapse -

Good deal.

by seanferd In reply to Thanks to everyone, but I ...

Glad it is working now.

Back to Microsoft Forum
9 total posts (Page 1 of 1)  

Related Discussions

Related Forums