'TREE' command...entire c:\ drive

  • Thread starter Thread starter F. Lawrence Kulchar
  • Start date Start date
F

F. Lawrence Kulchar

This concerns the 'TREE' command at the command prompt:

Why does c:\Documents and Settings\user\TREE work?

while c:\TREE does NOT work?

Or, how can I view my tree within my entire harddrive?

In other words, when I type, "c:\Documents and Settings\user\TREE ", I get
the tree listing of the 'Documents and Settings' folder.

How can I view same for the entire c:\ drive??

Thanks,
FLKulchar
 
F. Lawrence Kulchar wrote:
> This concerns the 'TREE' command at the command prompt:
>
> Why does c:\Documents and Settings\user\TREE work?
>
> while c:\TREE does NOT work?
>
> Or, how can I view my tree within my entire harddrive?
>
> In other words, when I type, "c:\Documents and Settings\user\TREE
> ", I get the tree listing of the 'Documents and Settings' folder.
>
> How can I view same for the entire c:\ drive??


TREE [drive:][path] [/F] [/A]
/F Display the names of the files in each folder.
/A Use ASCII instead of extended characters.

So...

Start button --> RUN --> CMD --> OK

TREE C:\
<enter>

Want to save the results to a text file?

TREE C:\ > c:\tree.txt
<enter>

Although I am unsure why you would want that. heh

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html
 
Please be more specific; I am a novice, and need more precise data.

Thanks,

FLKulchar
"Shenan Stanley" <newshelper@gmail.com> wrote in message
news:uAzEYHEQIHA.6036@TK2MSFTNGP03.phx.gbl...
> F. Lawrence Kulchar wrote:
>> This concerns the 'TREE' command at the command prompt:
>>
>> Why does c:\Documents and Settings\user\TREE work?
>>
>> while c:\TREE does NOT work?
>>
>> Or, how can I view my tree within my entire harddrive?
>>
>> In other words, when I type, "c:\Documents and Settings\user\TREE
>> ", I get the tree listing of the 'Documents and Settings' folder.
>>
>> How can I view same for the entire c:\ drive??

>
> TREE [drive:][path] [/F] [/A]
> /F Display the names of the files in each folder.
> /A Use ASCII instead of extended characters.
>
> So...
>
> Start button --> RUN --> CMD --> OK
>
> TREE C:\
> <enter>
>
> Want to save the results to a text file?
>
> TREE C:\ > c:\tree.txt
> <enter>
>
> Although I am unsure why you would want that. heh
>
> --
> Shenan Stanley
> MS-MVP
> --
> How To Ask Questions The Smart Way
> http://www.catb.org/~esr/faqs/smart-questions.html
>
 
F. Lawrence Kulchar wrote:
> This concerns the 'TREE' command at the command prompt:
>
> Why does c:\Documents and Settings\user\TREE work?
>
> while c:\TREE does NOT work?
>
> Or, how can I view my tree within my entire harddrive?
>
> In other words, when I type, "c:\Documents and Settings\user\TREE
> ", I get the tree listing of the 'Documents and Settings' folder.
>
> How can I view same for the entire c:\ drive??


Shenan Stanley wrote:
> TREE [drive:][path] [/F] [/A]
> /F Display the names of the files in each folder.
> /A Use ASCII instead of extended characters.
>
> So...
>
> Start button --> RUN --> CMD --> OK
>
> TREE C:\
> <enter>
>
> Want to save the results to a text file?
>
> TREE C:\ > c:\tree.txt
> <enter>
>
> Although I am unsure why you would want that. heh


FLKulchar wrote:
> Please be more specific; I am a novice, and need more precise data.


I cannot be more specific than I was.

I gave you the EXACT commands and methods to execute those commands.

I am unsure what 'specifics' beyond that you are looking for in reference to
your query of, "How can I view same for the entire c:\ drive??"

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html
 
typing "tree c:" works!

but, I only end up with only the subfolders as: "C:\documents and
settings\user TREE"

In other words, the listing is the same for both entries; the tree
subfolders do not display except for the c:\documents and settings\user
folder?

I am perplexed.

FLKulchar
"Shenan Stanley" <newshelper@gmail.com> wrote in message
news:e2cmuMEQIHA.4740@TK2MSFTNGP02.phx.gbl...
> F. Lawrence Kulchar wrote:
>> This concerns the 'TREE' command at the command prompt:
>>
>> Why does c:\Documents and Settings\user\TREE work?
>>
>> while c:\TREE does NOT work?
>>
>> Or, how can I view my tree within my entire harddrive?
>>
>> In other words, when I type, "c:\Documents and Settings\user\TREE
>> ", I get the tree listing of the 'Documents and Settings' folder.
>>
>> How can I view same for the entire c:\ drive??

>
> Shenan Stanley wrote:
>> TREE [drive:][path] [/F] [/A]
>> /F Display the names of the files in each folder.
>> /A Use ASCII instead of extended characters.
>>
>> So...
>>
>> Start button --> RUN --> CMD --> OK
>>
>> TREE C:\
>> <enter>
>>
>> Want to save the results to a text file?
>>
>> TREE C:\ > c:\tree.txt
>> <enter>
>>
>> Although I am unsure why you would want that. heh

>
> FLKulchar wrote:
>> Please be more specific; I am a novice, and need more precise data.

>
> I cannot be more specific than I was.
>
> I gave you the EXACT commands and methods to execute those commands.
>
> I am unsure what 'specifics' beyond that you are looking for in reference
> to your query of, "How can I view same for the entire c:\ drive??"
>
> --
> Shenan Stanley
> MS-MVP
> --
> How To Ask Questions The Smart Way
> http://www.catb.org/~esr/faqs/smart-questions.html
>
 
FLKulchar wrote:
> typing "tree c:" works!
>
> but, I only end up with only the subfolders as: "C:\documents and
> settings\user TREE"
>
> In other words, the listing is the same for both entries; the tree
> subfolders do not display except for the c:\documents and settings\user
> folder?
>
> I am perplexed.
>
> FLKulchar
> "Shenan Stanley" <newshelper@gmail.com> wrote in message
> news:e2cmuMEQIHA.4740@TK2MSFTNGP02.phx.gbl...
>> F. Lawrence Kulchar wrote:
>>> This concerns the 'TREE' command at the command prompt:
>>>
>>> Why does c:\Documents and Settings\user\TREE work?
>>>
>>> while c:\TREE does NOT work?
>>>
>>> Or, how can I view my tree within my entire harddrive?
>>>
>>> In other words, when I type, "c:\Documents and Settings\user\TREE
>>> ", I get the tree listing of the 'Documents and Settings' folder.
>>>
>>> How can I view same for the entire c:\ drive??

>> Shenan Stanley wrote:
>>> TREE [drive:][path] [/F] [/A]
>>> /F Display the names of the files in each folder.
>>> /A Use ASCII instead of extended characters.
>>>
>>> So...
>>>
>>> Start button --> RUN --> CMD --> OK
>>>
>>> TREE C:\
>>> <enter>
>>>
>>> Want to save the results to a text file?
>>>
>>> TREE C:\ > c:\tree.txt
>>> <enter>
>>>
>>> Although I am unsure why you would want that. heh

>> FLKulchar wrote:
>>> Please be more specific; I am a novice, and need more precise data.

>> I cannot be more specific than I was.
>>
>> I gave you the EXACT commands and methods to execute those commands.
>>
>> I am unsure what 'specifics' beyond that you are looking for in reference
>> to your query of, "How can I view same for the entire c:\ drive??"
>>
>> --
>> Shenan Stanley
>> MS-MVP
>> --
>> How To Ask Questions The Smart Way
>> http://www.catb.org/~esr/faqs/smart-questions.html
>>

>
>


If, for some unknown reason, you want the "tree" view for your *entire*
hard drive, either:

1) change directory to the root before you run the tree command:
cd C:\ [enter]
tree [enter] OR tree | more [enter]

OR

2) specify the directory properly in the tree command, including the \,
that is:

tree c:\ [enter]

--
Lem -- MS-MVP - Networking

To the moon and back with 2K words of RAM and 36K words of ROM.
http://en.wikipedia.org/wiki/Apollo_Guidance_Computer
http://history.nasa.gov/afj/compessay.htm
 
FLKulchar wrote:
> typing "tree c:" works!
>
> but, I only end up with only the subfolders as: "C:\documents and
> settings\user TREE"
>
> In other words, the listing is the same for both entries; the tree
> subfolders do not display except for the c:\documents and
> settings\user folder?
>
> I am perplexed.


Do it exactly as was reported.

In your dumb case, you left out the backslash.

The TREE command has to start somewhere and it does NOT always start at the
root directory.

The TREE command began its work in the current folder (C:\documents and
settings\user) not the root folder (C:\). See the backslash?
 
Thank you...I forgot the "\"

FLKulchar
"HeyBub" <heybub@gmail.com> wrote in message
news:O2tHJvEQIHA.6060@TK2MSFTNGP05.phx.gbl...
> FLKulchar wrote:
>> typing "tree c:" works!
>>
>> but, I only end up with only the subfolders as: "C:\documents and
>> settings\user TREE"
>>
>> In other words, the listing is the same for both entries; the tree
>> subfolders do not display except for the c:\documents and
>> settings\user folder?
>>
>> I am perplexed.

>
> Do it exactly as was reported.
>
> In your dumb case, you left out the backslash.
>
> The TREE command has to start somewhere and it does NOT always start at
> the root directory.
>
> The TREE command began its work in the current folder (C:\documents and
> settings\user) not the root folder (C:\). See the backslash?
>
 
I typed your command: TREE C:\ > c:\tree.txt

Where is the text file?

FLKulchar

"Shenan Stanley" <newshelper@gmail.com> wrote in message
news:e2cmuMEQIHA.4740@TK2MSFTNGP02.phx.gbl...
> F. Lawrence Kulchar wrote:
>> This concerns the 'TREE' command at the command prompt:
>>
>> Why does c:\Documents and Settings\user\TREE work?
>>
>> while c:\TREE does NOT work?
>>
>> Or, how can I view my tree within my entire harddrive?
>>
>> In other words, when I type, "c:\Documents and Settings\user\TREE
>> ", I get the tree listing of the 'Documents and Settings' folder.
>>
>> How can I view same for the entire c:\ drive??

>
> Shenan Stanley wrote:
>> TREE [drive:][path] [/F] [/A]
>> /F Display the names of the files in each folder.
>> /A Use ASCII instead of extended characters.
>>
>> So...
>>
>> Start button --> RUN --> CMD --> OK
>>
>> TREE C:\
>> <enter>
>>
>> Want to save the results to a text file?
>>
>> TREE C:\ > c:\tree.txt
>> <enter>
>>
>> Although I am unsure why you would want that. heh

>
> FLKulchar wrote:
>> Please be more specific; I am a novice, and need more precise data.

>
> I cannot be more specific than I was.
>
> I gave you the EXACT commands and methods to execute those commands.
>
> I am unsure what 'specifics' beyond that you are looking for in reference
> to your query of, "How can I view same for the entire c:\ drive??"
>
> --
> Shenan Stanley
> MS-MVP
> --
> How To Ask Questions The Smart Way
> http://www.catb.org/~esr/faqs/smart-questions.html
>
 
Great
"HeyBub" <heybub@gmail.com> wrote in message
news:OxxuLyKQIHA.4752@TK2MSFTNGP05.phx.gbl...
> FLKulchar wrote:
>> I typed your command: TREE C:\ > c:\tree.txt
>>
>> Where is the text file?
>>

>
> Where you told the command to put it: - C:\ [the root folder of C:] - and
> the file's name is TREE.TXT
>
 
Back
Top