User Profile

Collapse

Profile Sidebar

Collapse
TMafonoGames
TMafonoGames
Last Activity: Mar 16 '14, 06:25 PM
Joined: Mar 16 '14
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hello Luistkd

    You can use this to get your application location

    Code:
    Dim directory As String = My.Application.Info.DirectoryPath
    
    And Use 
    
    Dim di As New IO.DirectoryInfo(directory)
    Dim diar1 As IO.FileInfo() = di.GetFiles("*.jpg")
    Dim dra As IO.FileInfo
    
    For Each dra In diar1
    ListBox1.Items.Add(dra)
    Next
    
    To Get The Pictures In A ListBox
    ...
    See more | Go to post
    Last edited by Rabbit; Mar 16 '14, 07:21 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.

    Leave a comment:


  • Getting a .bat file location in the application location and executing it

    Im trying to make my application check for any .bat files In its location
    im using

    Dim directory As String = My.Application. Info.DirectoryP ath

    to the my application directory
    and im using This

    Dim di As New IO.DirectoryInf o(directory)
    Dim diar1 As IO.FileInfo() = di.GetFiles("*. bat")
    Dim dra As IO.FileInfo


    To Check...
    See more | Go to post
No activity results to display
Show More
Working...