.net and file help

.net , vb6 United States
  • 18 years ago

    I just got .net and im working on a project and i need to to  search the app.path/data  for all .dat file and then display them in a listbox can anyone give me this code ??

  • 18 years ago

    anyone  help me ?? please ?

  • 18 years ago

    Ok well This Forum Realy Suck  Im out off here!

  • 18 years ago

    if u downbload and register this ocx in the system folder of ure pc, http://www.martin2k.co.uk/vb6/ocxs/filesearch.zip ,u can then select in vb the ocx, ready to search for the .dat files now


    place a command button, list box, and a label,


    place this under the button
    FS1.SearchFile list1, "c:\locationofdatfiles\", ".dat", label1


    the results will come into the list and u can see the scan in the label as it happens


    u can change the location "c:\locationofdatfiles\" as text1.text for a user defined search location


    hope this  helps

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!' but 'That's funny...'” - Isaac Asimov