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

  • SEARCH
  • Home
  • 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 7715133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:18:32+00:00 2026-06-01T02:18:32+00:00

I am making a libary file with functions for extra credit for computer programming

  • 0

I am making a libary file with functions for extra credit for computer programming and everything works fine but when i execute the program without the libary file in the same dictionary it crashes and im looking for a way so that it wont crash but can not find a way to check for the file no matter where its at

example if the two files are in C://Files
then it will run with out a problem but if just the executable is just in C://Files i want a message box to pop up saying LibaryFileName.dll is missing and i want it to check for the Dll file no matter what folder the two are in but will detect it if its in the same folder as the executable

  • 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-06-01T02:18:34+00:00Added an answer on June 1, 2026 at 2:18 am

    From what I understand, you’re trying to determine if a file exists in the same directory as your executable.

    Here’s an example of what you’re tying to achieve:

    If you have the complete path, it will check at that path

    Dim curFile As String = "c:\temp\test.txt"
    If File.Exists(curFile) Then
        'The file exists, do something
    End If
    

    If you only have a partial path, it will search the directories where the executable is.
    For instance, the following code will check if text.txt exists in the same directory as the executable.

    Dim curFile As String = "test.txt"
    If File.Exists(curFile) Then
       'The file exists, do something
    End If
    

    Also, you will need to use Imports System.IO. You can change text.txt to any file you want to verify if it exists.

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

Sidebar

Related Questions

I am in process of making my bootstrap.php file more organized, but after I
I am searching a library or jar file for making a system monitoring program.
Okay, im making a pretty big file in my opinion, so i wanted to
I've making a shared library (cross-platform), but when trying to compile the Windows build
I've been making mxml itemRenderers, but from what I hear at adobe, for the
Im making an application that uses of API-threads in C, The program takes N-files
I am making one dynamic library by using some function of libmxml.a library but
I'm making a simple program that takes text entered in a text box, and
I'm making a c++ library thats going to be P/Invoked from c#, so i
Hello i am making an static library for distribution. I am distributing the .h

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.