Results 1 to 5 of 5

Thread: Drive listings

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    5

    Question Drive listings

    Say for example you want to create a fake-format to scare the crap out of a friend.

    Now, think of the code you would need to make it diplay the filename and path of each file on the computer(Including network drives too, if possible).

    Now, click "Reply" and type the code!

    Thank you!

  2. #2
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Huh... it's been done, sorry

    http://www.rjlsoftware.com/default.shtml

    Anyway, you'd use something like this:

    VB Code:
    1. Dim Temp As String
    2. Temp = Dir("")
    3. Do
    4.     'Show the user that we're deleting the file Temp :)
    5.  
    6.     Temp = Dir()
    7. Loop While Temp <> ""

    I don't know if that works. Also don't ask how, read something on the Dir function
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    5

    Could you elaborate a little?

    Ok that seems to make sense but I modified it and I only got one file to show.DATAVIEW.DLL .How would you slow it down? And I want the path too...

    Preferably not a timer.

  4. #4
    Zaei
    Guest
    Add a DoEvents after you change the caption.

    As an aside, someone paid $23 earlier today on RentACoder to find out why their form wouldnt respond while processing a large amount of data in a loop =). I bid $4 (minimum)... Dont know what the guy was thinking...

    Z.

  5. #5

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    5
    DoEvents??
    Typed it in like this:

    Private Sub form_load()
    Dim Temp As String
    Temp = Dir("")
    Do
    Label1.Caption = Temp
    DoEvents
    Temp = Dir()
    Loop While Temp <> ""
    End Sub

    Now I've got COMCTL32.oca

    That fakeformats good but I want another style in it. Thanx anywayz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width