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 906903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:27:46+00:00 2026-05-15T16:27:46+00:00

Say I have this file structure Soultion-> Folder1 -> FileIwant.html So this could be

  • 0

Say I have this file structure

Soultion-> Folder1 -> FileIwant.html

So this could be something like C:\Soultion\Folder1\FilterIwant.html

Now I need to read this file into my application. I can’t just hardcode it since when I give it to someone else they might put it on F: drive or something.

Or when I create a msi file the path might be completely different. So how can I say maybe take

“Folder1\FilterIwant.html”

and use that to get the folder path regardless of where they put it?

Edit

I tried Path.GetFullPath but I land up in the bin/debug directory. But my file is not in that directory. I think it is a couple directories before. Also if I make a msi file will I have bin/debug directory?

  • 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. Editorial Team
    Editorial Team
    2026-05-15T16:27:46+00:00Added an answer on May 15, 2026 at 4:27 pm

    Why is a file which is used as part of your application not in the same folder as the application? It sounds to me like you should set the properties on that file to copy to the output folder when you do a build.

    Doing that will make sure your file is in the bin\debug folder.

    EDIT:
    either that or you should be placing your files in one of the special folders, app data or my documents spring to mind.

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

Sidebar

Related Questions

Let's say that I have something like this in my web.xml file. <filter name=foo>
I have a file in this structure: 009/foo/bar/hi23123/foo/bar231123/foo/bar/yo232131 What i need is to find
Let's say that I have this website file root structure: frontend /home/username/public_html/ backend /home/username/public_html/admin/
Say I have a structure like this: class AAA { BBB bb_member; double dbl_member;
I have a file structure like this: 00000010 000000001.file1 000000001.file2 00000020 00000003.file1 00000003.file2 00000003.file3
Let's Say i have a HTML file with that structure <html> <head> </head> <body>
I am reading a file byte-by-byte. Say for example i have this byte: 0x41
Say i have this this structure. MyApp ├── main.py └── package ├── __init__.py ├──
Lets say we have the following file and [folder] structure in a project with
So say I have a URL being requested: sub.domain/file.bin and I wanted this file

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.