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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:53:21+00:00 2026-06-15T20:53:21+00:00

I have a problem that causes my whole project to function incorrect. Later I

  • 0

I have a problem that causes my whole project to function incorrect.
Later I found out what was causing it, and I can’t fix it.
The problem is my VB.net application cannot find the file, and I’m 100% sure the file is there.
(to be honest I have to open minecraft.jar in \bin\minecraft.jar, relative from the application. But I tried it with a text file and it doesn’t work either)

    Try
        Shell(Application.StartupPath + "\options.txt")
    Catch Ex As Exception
        MsgBox(ErrorToString) ' I've got file not found..
        MsgBox(Application.StartupPath + "\options.txt") 'Displays the path to my file, and in Explorer (Windows) it opens the file
    End Try
  • 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-15T20:53:22+00:00Added an answer on June 15, 2026 at 8:53 pm

    Shell expects a path to an executable. It will throw a FileNotFindException even if the file is there when it is not an executable.

    From the documentation:

    Exceptions

    FileNotFoundException – Shell cannot start the named program.


    If you want windows to decide which programm to use to open your file, use Process.Start instead.

    Process.Start(Application.StartupPath + "\options.txt")
    

    EDIT:

    OK, you totally changed your question, but I’m cool with that:

    “Can’t access jarfile C:\users\max korlaar\dropbox\max ” And the folder name isn’t max.. It is max & alex.

    You have a space in your paths, so you have to quote it (put in between two ").

    Dim args As String = "-jar  -natives""{1}"" -lwjgl""{2}"" ...etc..etc..."
    

    Otherwise, the java executable will not be able to distinguish between the arguments you pass to it.

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

Sidebar

Related Questions

I have a problem that is getting embarrassingly out of hand. I'm working with
I have this problem that I can ref a button for control it. I
We have the problem that we have the open project files in our SVN
i have a problem that i can't solve ! (sqlite3, but i think it
In a couple of scripts that I use I have problem that is intermittent.
I have a problem that I'm working on for quite some time now. I
I have a problem that has been driving me batty. I have code that
I have a problem that occurs only in a production environment, deployed at heroku.
(I have a problem that I illustrated in this question but had no correct
I have a problem that output string must be utf8-formatted, I am writing currently

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.