Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Command to get relative path

Command to get relative path

Scheduled Pinned Locked Moved Visual Basic
questioncsharp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Divya Rathi
    wrote on last edited by
    #1

    I have to get the relative path to an excel sheet which is placed in folder where my vb.net project is present. What is the command to get relative path ? Divya Rathi

    S S 2 Replies Last reply
    0
    • D Divya Rathi

      I have to get the relative path to an excel sheet which is placed in folder where my vb.net project is present. What is the command to get relative path ? Divya Rathi

      S Offline
      S Offline
      Steve Pullan
      wrote on last edited by
      #2

      Look up the Application (for .NET) or App (VB 6) object. ...Steve 1. quod erat demonstrandum 2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once :-) (Translation: I'll show you the way, but not write the code for you.)

      1 Reply Last reply
      0
      • D Divya Rathi

        I have to get the relative path to an excel sheet which is placed in folder where my vb.net project is present. What is the command to get relative path ? Divya Rathi

        S Offline
        S Offline
        sathish s
        wrote on last edited by
        #3

        You could use Console.WriteLine(Path.GetFullPath("..\"))

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups