Re: DIR () & hidden things
- Posted by gbonvehi Sep 27, 2011
- 1372 views
Windows 7 (and I don't remember Vista) has this kind of softlinks ala Linux and IIRC they are called junctions. "Documents and settings" does not exists as it is, it's just a symlink to Users This is a console output from Windows 7.
C:\>dir "Documents and Settings" Volume in drive C has no label. Volume Serial Number is 88C7-590C Directory of C:\Documents and Settings File Not Found C:\>cd "Documents and Settings" C:\Documents and Settings>
Edit: You should use something like %USERPROFILE% if you're looking for the current OS user folder. Take a look here: http://vlaurie.com/computers2/Articles/environment.htm for XP like OS
And here for 7: http://vlaurie.com/computers2/Articles/environment-variables-windows-vista-7.htm
Edit2: You can still see it using /a
C:\Documents and Settings>cd .. C:\>dir Volume in drive C has no label. Volume Serial Number is 88C7-590C Directory of C:\ 15/09/2011 04:26 p.m. 1.024 .rnd 10/06/2009 06:42 p.m. 24 autoexec.bat 10/06/2009 06:42 p.m. 10 config.sys 22/09/2011 01:41 a.m. <DIR> Downloads 21/02/2011 04:12 a.m. <DIR> NVIDIA 13/07/2009 11:37 p.m. <DIR> PerfLogs 09/05/2011 06:32 p.m. <DIR> Prey 15/09/2011 04:26 p.m. <DIR> Program Files 28/12/2009 01:47 p.m. 1.679 RHDSetup.log 01/12/2010 04:48 p.m. <DIR> totalcmd 30/11/2010 05:34 p.m. <DIR> Users 19/09/2011 11:05 a.m. <DIR> Windows 4 File(s) 2.737 bytes 8 Dir(s) 34.967.805.952 bytes free C:\>dir /a Volume in drive C has no label. Volume Serial Number is 88C7-590C Directory of C:\ 30/11/2010 05:45 p.m. <DIR> $Recycle.Bin 15/09/2011 04:26 p.m. 1.024 .rnd 10/06/2009 06:42 p.m. 24 autoexec.bat 23/02/2011 05:22 p.m. <DIR> Boot 20/11/2010 09:40 a.m. 383.786 bootmgr 10/06/2009 06:42 p.m. 10 config.sys 14/07/2009 01:53 a.m. <JUNCTION> Documents and Settings [C:\Users] 22/09/2011 01:41 a.m. <DIR> Downloads 25/09/2011 08:52 p.m. 1.408.638.976 hiberfil.sys 28/12/2009 12:32 p.m. <DIR> MSOCache 21/02/2011 04:12 a.m. <DIR> NVIDIA 25/09/2011 08:52 p.m. 1.878.188.032 pagefile.sys 13/07/2009 11:37 p.m. <DIR> PerfLogs 09/05/2011 06:32 p.m. <DIR> Prey 15/09/2011 04:26 p.m. <DIR> Program Files 21/09/2011 12:10 a.m. <DIR> ProgramData 30/11/2010 05:32 p.m. <DIR> Recovery 28/12/2009 01:47 p.m. 1.679 RHDSetup.log 27/09/2011 05:08 p.m. <DIR> System Volume Information 01/12/2010 04:48 p.m. <DIR> totalcmd 30/11/2010 05:34 p.m. <DIR> Users 19/09/2011 11:05 a.m. <DIR> Windows 7 File(s) 3.287.213.531 bytes 15 Dir(s) 34.967.805.952 bytes free C:\>Cheers, Guillermo