Results 1 to 8 of 8

Thread: Path Dir (should be easy this one)

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    UK
    Posts
    271

    Question Path Dir (should be easy this one)

    hi,

    in VB6 I could use app.path

    but in .NET that isn't so..

    how do I get the path of my app?

    thanx
    §tudz

    Studzworld.com - Portfolio

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    application.startuppath
    something like that
    there are like 3 good ways to get teh path, I always use that. Search the forum if that doesnt help, there are about 10000000 posts about this
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  3. #3
    Hyperactive Member phrozeman's Avatar
    Join Date
    Apr 2000
    Location
    Netherlands
    Posts
    442
    VB Code:
    1. MsgBox(Windows.Forms.Application.ExecutablePath())

    that will do the job
    There's a certain mystique when I speak, that you notice that it's sorta unique, cause you know it's me

  4. #4
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    VB Code:
    1. Application.StartupPath


    bugger, cross posts, grrr...
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  5. #5
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by RealNickyDude
    VB Code:
    1. Application.StartupPath

    edit: wait a minute isnt that what I just said?!!!


    btw the ExecutablePath function also returns the exe filename with it. That's why I just use the simpler StartupPath function.

    Umm and yes, it's nice to search if you wanna search for .net stuff though, dont search it up there in the search textbox, because you're gunno get a whole bunch of vb6 stuff (mostly). Click on the small search button and on the combo box on the bottom of the page, choose the vb.net forum
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  6. #6
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    nobody mentioned this method
    VB Code:
    1. Imports System.IO
    2.  
    3. Path.---

  7. #7
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by pirate
    nobody mentioned this method
    VB Code:
    1. Imports System.IO
    2.  
    3. Path.---
    huh?
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  8. #8
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    What??

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