Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: All Users Desktop Files "Not Found" (Dir *.*) in Elevated Cmd Prompt

23 Apr 2013   #11
AllanB

Windows 7 64bit
 
 

Quote   Quote: Originally Posted by Kaktussoft View Post
Quote   Quote: Originally Posted by AllanB View Post
Quote   Quote: Originally Posted by Kaktussoft View Post
In elevated command prompt:

Code:
 
dir/als  c:\programdata\desktop*
dir/als  "c:\users\All Users\Desktop*"
Post output
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\system32>dir/als c:\programdata\desktop*
Volume in drive C is Windows
Volume Serial Number is 1E27-E7B4

Directory of c:\programdata

07/14/2009 01:08 AM <JUNCTION> Desktop [C:\Users\Public\Desktop]
0 File(s) 0 bytes
1 Dir(s) 31,501,836,288 bytes free

C:\Windows\system32>
C:\Windows\system32>dir/als "c:\users\All Users\Desktop*"
Volume in drive C is Windows
Volume Serial Number is 1E27-E7B4

Directory of c:\users\All Users

07/14/2009 01:08 AM <JUNCTION> Desktop [C:\Users\Public\Desktop]
0 File(s) 0 bytes
1 Dir(s) 31,501,189,120 bytes free
All is as it should be!!
Code:
C:
cd  "\users\All Users\desktop"
copy  con  test.txt
!now press CTRL-Z
cd  \programdata\desktop
copy  con  test2.txt
!now press CTRL-Z
Code:
dir  c:\users\public\desktop
Do you see files test.txt and test2.txt ? Delete them.

Do you see "c:\users\All Users\desktop" and c:\programdata\desktop are actually pointing to c:\users\public\desktop.

So what's the problem?
Yes, it works!!

C:\>cd "\users\All Users\desktop"

C:\Users\All Users\Desktop>copy con test.txt

1 file(s) copied.

C:\Users\All Users\Desktop>cd \programdata\desktop

C:\ProgramData\Desktop>
C:\ProgramData\Desktop>copy con test2.txt

1 file(s) copied.

C:\ProgramData\Desktop>dir c:\users\public\desktop
Volume in drive C is Windows
Volume Serial Number is 1E27-E7B4

Directory of c:\users\public\desktop

04/23/2013 09:19 PM 0 test.txt
04/23/2013 09:20 PM 0 test2.txt
2 File(s) 0 bytes
0 Dir(s) 31,475,945,472 bytes free

C:\ProgramData\Desktop>

I didn't bother deleting the two created files but rather modified by batch file as follows:

rem C:\Users\All Users\desktop = C:\ProgramData\desktop and they point to C:\Users\Public\Desktop which is accessible from the Command Prompt
Move C:\Users\Public\Desktop\*.* C:\Users\ALLAN\Desktop\
@echo off

and it worked perfectly via the command prompt:

E:\AB>rem C:\Users\All Users\desktop = C:\ProgramData\desktop and they point to C:\Users\Public\Desktop which is accessible from the Command Prompt

E:\AB>Move C:\Users\Public\Desktop\*.* C:\Users\ALLAN\Desktop\
C:\Users\Public\Desktop\test.txt
C:\Users\Public\Desktop\test2.txt
2 file(s) moved.


-- and I checked my desktop and the two files were moved to the right side.

Incidentally, I do this so as to keep all of my icons (except for the Recycle Bin, Computer and Control Panel) together, sorted alphabetically. Otherwise, when I would look for an icon, I would have to scan through the Public side of the desktop and the Allan side of the desktop.

Again, thank you very much, Kaktussoft, and thanks also to UsernameIssues and logicearth!!


My System SpecsSystem Spec
.
Reply

 All Users Desktop Files "Not Found" (Dir *.*) in Elevated Cmd Prompt




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Setting Priority with "Elevated Shortcut without UAC Prompt Tutorial"
I used the info in Elevated Program Shortcut without UAC Prompt Tutorial and it soon dawned on me that the applications seemed to be taking a long time to run. Than the penny dropped - Scheduled Tasks run at priority 7 by default (which is lower than directly run applications typically run at)...
General Discussion
"! The file C:\Users\...\...\...\Outlook.pst cannot be found"
When I first installed Office 365 Home Premium, Outlook worked perfectly. Recently, whenever I start Outlook 2013, an error message requesting an Outlook data file appears. "! The file C:\Users\John\Documents\Outlook Files\Outlook.pst cannot be found." After I cancel two successive screens...
Microsoft Office
Sony Vaio Win7 "Operating System Not Found" - missing data files
This is a client's pc. SONY VAIO All In One VPCL21AFX/B recvd a "Operating System Not Found" error msg when starting after normal shutdown rebooted w/o external devices, same error F8 didn't work F12 put it into a Sony repair menu Esc'd out to Win menu Command Line "bootrec.exe /fixmbr" -...
General Discussion
Trying to Remove a File on my Desktop - "Item not Found"
I have had this problem for nearly a year now. I currently have about five files on my desktop that when ever I try to remove I receive the error; ----- Item Not Found Could not find this item This is no longer located in C:\Users\\Desktop. Verify the items location then try again. -----
General Discussion
"Item not found" bug when moving or renaming files/folders
Hello, I just made an account here because this bug is seriously bugging me. It shows up whenever I move or create any new files/folders. I have googled the registry fix and that doesn't seem to be working. Is there any other known fix? P.S. There is nothing wrong with Waterfox.
General Discussion
I cannot view the XP files "Desktop" "My documents"
Hi From Turkey I have a problem. I bought a new computer with windows seven Pro Here is a company and we have a domain controller. So my old computer (With windows XP Pro) was in domain. I joined in my new computer to domain. I removed the Harddisk of my old computer. and then i put it...
Installation & Setup


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 21:01.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App