|
-
Aug 18th, 2003, 09:59 PM
#1
Thread Starter
New Member
Path of Folders and Subfolders
I am a new programmer, pls help. The prog I am coding requires me to read write down the path of each folders, subfolder and sub-sub-folders from a specifed main folder.
So for eg. My main folder is (C:\temp\) and inside this folder there are 3 folders, and within each folders there are other sub folders. My output should be:
C:\temp\a
C:\temp\a\abc
C:\temp\a\def
C:\temp\a\ghi
C:\temp\b\abc
C:\temp\b\def
C:\temp\c\abc\abc\def
C:\temp\c\def\abc
So how should I code this? Pls help. ...
Let's Reach for the S*T*A*R*S!!!
-
Aug 19th, 2003, 01:28 AM
#2
recursion
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Aug 19th, 2003, 06:37 AM
#3
Sleep mode
Search here . This has been asked many times .
-
Aug 23rd, 2003, 07:00 PM
#4
Thread Starter
New Member
as I am new, can you give me a simple example of recursion?
Let's Reach for the S*T*A*R*S!!!
-
Aug 23rd, 2003, 07:29 PM
#5
Originally posted by Rux@
as I am new, can you give me a simple example of recursion?
Buy a book.
Recursion is when a function (or maybe sub) that calls itself.
like
VB Code:
Public Function OMG(ByVal Number As Integer) As Integer
Number + 2
If Number <= 10 then
OMG(Number)
Else
Return Number
End If
end function
-
Aug 24th, 2003, 11:12 AM
#6
Thread Starter
New Member
Ok .. thanks .. I sort of know what it means now.
Let's Reach for the S*T*A*R*S!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|