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

Related Questions

I have a .net 3.5 application running on windows mobile professional that uses sql
I have an application which is .NET 2.0, running on Windows XP Professional. This
I have an application running only on Windows and a batch file that launches
When an ASP.NET application is running under IIS6.0 in Windows 2003 Server with impersonation,
When an application is running as a Windows Service (written in .NET), what would
I have a windows application running at the backend. I have functions in this
I have a wcf application hosted in a windows service running a local windows
I have a WPF (C# and .NET 4) application that has a long running
What is the best MemCache solution for ASP.NET applications running in a windows server
I've got a web application that is running against Windows Authentication using our Active

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.