Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 178671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:16:18+00:00 2026-05-11T14:16:18+00:00

I am running windows application in vb.net.I have a xml file named mail.xml in

  • 0

I am running windows application in vb.net.I have a xml file named mail.xml in folder named XmlFiles.In default.aspx.vb i have to get the path of mail.xml.What code i hve to write to make it possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T14:16:19+00:00Added an answer on May 11, 2026 at 2:16 pm

    You can use the GetFullPath static method of the Path class:

    Dim fileName As string = 'myfile.ext' Dim path1 As string = 'mydir' Dim path2 As string = '\mydir' Dim fullPath As string  fullPath = Path.GetFullPath(path1) Console.WriteLine('GetFullPath('{0}') returns '{1}'', _     path1, fullPath)  fullPath = Path.GetFullPath(fileName) Console.WriteLine('GetFullPath('{0}') returns '{1}'', _     fileName, fullPath)  fullPath = Path.GetFullPath(path2) Console.WriteLine('GetFullPath('{0}') returns '{1}'', _     path2, fullPath)  ' Output is based on your current directory, except ' in the last case, where it is based on the root drive ' GetFullPath('mydir') returns 'C:\temp\Demo\mydir' ' GetFullPath('myfile.ext') returns 'C:\temp\Demo\myfile.ext' ' GetFullPath('\mydir') returns 'C:\mydir' 

    Example is from MSDN.

    Another way is to use the fullName property of the FileInfo class (inherited from FileSystemInfo), see usage below:

    Sub DisplayFileSystemInfoAttributes(ByVal fsi As FileInfo)     ' Assume that this entry is a file.     Dim entryType As String = 'File'      ' Determine if this entry is really a directory.     If fsi.Attributes = FileAttributes.Directory Then         entryType = 'Directory'     End If      ' Show this entry's type, name, and creation date.     Console.WriteLine('{0} entry {1} was created on {2:D}', _         entryType, **fsi.FullName**, fsi.CreationTime) End Sub 

    From MSDN as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 146k
  • Answers 146k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Not sure this is a good idea : if you… May 12, 2026 at 9:01 am
  • Editorial Team
    Editorial Team added an answer The Win32_Product class only represents products that are installed by… May 12, 2026 at 9:01 am
  • Editorial Team
    Editorial Team added an answer I use a three phase technique for evaluating APIs. 1)… May 12, 2026 at 9:01 am

Related Questions

Maybe you can help me... I am writing a program in Windows Mobile that
I am a Web developer who spends 99% of his time in Linux, but
Solution (kinda): Turns out this impersonation with .NET's security only allows application-level access. Since
The below is an involved problem, I've done a great amount of research, but

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.