To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
MSDN Subscribers: Download the VS 2010 Release Candidate
MSDN Subscribers: Download the VS 2010 Release Candidate
Sell Your Code and Make Money?
Creating your own Tetris game using VB.NET
Article :: Improving Software Economics, Part 4 of 7: Top 10 Principles of Iterative Software Management



Go Back   VBForums > Visual Basic > API

Reply Post New Thread
 
Thread Tools Search this Thread Display Modes
Old Oct 28th, 2006, 09:44 PM   #1
msayed2004
Addicted Member
 
Join Date: Jun 06
Location: Egypt
Posts: 162
msayed2004 is on a distinguished road (20+)
Resolved [RESOLVED] APIs instead of File System Object

We can collect sub folder for another folder using a Reference to (scrrun.dll) , by this code :

VB Code:
  1. Option Explicit
  2. Dim FSO As New FileSystemObject
  3. Private Sub cmdCollect_Click()
  4. Dim SubFolder As Folder
  5. Dim RootFolder As Folder
  6. Set RootFolder = FSO.GetFolder("C:\)
  7. For Each SubFolder In RootFolder.SubFolders
  8.     Print SubFolder.Path
  9. Next
  10. End Sub


Can I do this with APIs , I prefer any method rather than (FindFirstFile,FindNextFile&FindClose) , if possible.

BTW : for VB6

Thanks
__________________
Mohammed Sayed - Egypt



=

=

Please rate my posts if they were useful
msayed2004 is offline   Reply With Quote
Old Oct 29th, 2006, 12:54 AM   #2
bushmobile
Oi, fat-rag!
 
bushmobile's Avatar
 
Join Date: Mar 04
Location: on the poop deck
Posts: 5,581
bushmobile is a splendid one to behold (700+)bushmobile is a splendid one to behold (700+)bushmobile is a splendid one to behold (700+)bushmobile is a splendid one to behold (700+)bushmobile is a splendid one to behold (700+)bushmobile is a splendid one to behold (700+)bushmobile is a splendid one to behold (700+)
Re: APIs instead of File System Object

Quote:
Originally Posted by msayed2004
Can I do this with APIs , I prefer any method rather than (FindFirstFile,FindNextFile&FindClose)
eh? they are the APIs - you'll need to use them if you use API

see VBnet for loads of great file API routines
bushmobile is offline   Reply With Quote
Old Oct 29th, 2006, 07:56 AM   #3
msayed2004
Addicted Member
 
Join Date: Jun 06
Location: Egypt
Posts: 162
msayed2004 is on a distinguished road (20+)
Re: APIs instead of File System Object

I know that they are APIs , I said :
Quote:
I prefer any method rather than...
I searched that website and no other way , so it is resolved , thank you buddy , thank you again for that site , I never saw it.
__________________
Mohammed Sayed - Egypt



=

=

Please rate my posts if they were useful
msayed2004 is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > API


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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




To view more projects, click here

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.