473,394 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

file manager

I need to make a list of all folders, sub folders and file names on my hard
drive.

I cannot use just the print screen as it does not allow enough length. Is
there a solution to this or do I have to manually write one up in excel or
something.
Aug 22 '07 #1
2 1251
Just use a recursive loop to write the list to a text file. Heres a
recursion example to get you started.

http://www.codeproject.com/csharp/recursionincsharp.asp

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"DKP" <DK*@discussions.microsoft.comwrote in message
news:5E**********************************@microsof t.com...
>I need to make a list of all folders, sub folders and file names on my hard
drive.

I cannot use just the print screen as it does not allow enough length. Is
there a solution to this or do I have to manually write one up in excel or
something.

Aug 22 '07 #2
DKP schreef:
I need to make a list of all folders, sub folders and file names on my hard
drive.

I cannot use just the print screen as it does not allow enough length. Is
there a solution to this or do I have to manually write one up in excel or
something.
To get a treeview just open a commandbox (start->run->cmd) then type tree c:
If you want to capture this to a file type
tree c: c:\tree.txt
This wil generate a tree of the c: drive to a textfile called tree.txt
in the root of c:. You might want to use
tree c: /a c:\tree.txt
as this will not use special characters to indicate the treelines.
--
Rinze van Huizen
C-Services Holland b.v
Aug 22 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: cashdeskmac | last post by:
I have added an XML file to my project and set it up like so: <rotas xmlns = "http:\\ etc.."> <Managers> <manager ID = "1" FirstName = "Bill" LastName = "Gates"<\manager> <\Managers> <\rotas>...
2
by: Greg Strong | last post by:
Hello All, Where does the Add-In Manager get the file name? I've renamed a MDA file, and changed the project name in the Tools | Options | Advanced tab| Project Name box. When I use the...
4
by: News | last post by:
Hi Everyone, The attached code creates client connections to websphere queue managers and then processes an inquiry against them. The program functions when it gets options from the command...
4
by: Victor | last post by:
Please, could anybody kindly point me to a possibility to find out the location of a file contained in a VC++ 2005 solution? What I mean is really the location in the file system on the hard...
35
by: keerthyragavendran | last post by:
hi i'm downloading a single file using multiple threads... how can i specify a particular range of bytes alone from a single large file... for example say if i need only bytes ranging from...
4
by: kiwichick | last post by:
Hi there, can someone please tell me how I change the default file manager program Windows uses (Explorer) if the program I want to use (freeCommander) doesn't have an option to set it as the default...
3
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I cut and paste the following code from msdn help page which it just introduces view and multiview server controls. Here is what I do: in vs studio 2005, File --New Web Site, it...
3
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
I have a asp.net app, in the page there is a scan activex which could scan and save a jpg file in client harddisk. How could we access and display this jpg file on the fly using js in the client...
0
harshadd
by: harshadd | last post by:
Dear all, I am trying to install File server Resource Manager to apply user level directory quota. Tried to use this link for help , it is as below: I checked the GIF file But on my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.