I am currently working on a windows Application project. I have a folder named "documents" in bin/debug that contains subfolders while the subfolders contains word document files. When I click and drag the "documents" folder, i got a complete C:\Users\Satellite\Documents\Visual Studio 2010\Projects\WindowsExplorer_VB\WindowsExplorer_VB\bin\Debug\documents. What I want is to get the location of the folder in bin/debug so that the application can read from the directory when installed on a different machine.. Any help...
            Asked
            
        
        
            Active
            
        
            Viewed 2,292 times
        
    0
            
            
        - 
                    1there wont be a `bin\debug` folder on another machine when deployed...those are VS development folders – Ňɏssa Pøngjǣrdenlarp Sep 02 '15 at 22:04
- 
                    possible duplicate of [How do I get the path of the assembly the code is in?](http://stackoverflow.com/questions/52797/how-do-i-get-the-path-of-the-assembly-the-code-is-in) – Eric J. Sep 02 '15 at 22:07
- 
                    Then how can I return the path of the folder? – user46527 Sep 02 '15 at 22:08
1 Answers
0
            
            
        Try this:
Dim docPath As String = Path.Combine(My.Application.Info.DirectoryPath, "documents")
 
    
    
        JerryM
        
- 910
- 6
- 9
