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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:26:28+00:00 2026-05-16T16:26:28+00:00

I have a command line application that resides in the system32 folder so that

  • 0

I have a command line application that resides in the system32 folder so that i can call this application from anywhere with out having to fill in the full path to the app. The app takes in one parameter which is a full file path (EX: C:\Test\Test.txt) and works fine when it takes in this parameter (EX: C:\Test>Test.exe C:\Test\test.txt).

I brake the incoming parameter apart into path and file name. I would like to be able to call the application with out filling in the full path to the file (EX: C:\Test>Test.exe test.txt) however i’m not sure how to get the current working path of “C:\Test\” to fill in my path variable when it comes in empty.

I have tried to use the following however it returns the path to the system32 folder and not “C:\Test\”:

string _Path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location);
  • 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-16T16:26:29+00:00Added an answer on May 16, 2026 at 4:26 pm

    Use GetCurrentDirectory()

     Directory.GetCurrentDirectory();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

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

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

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

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

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I cannot reproduce. With the following entity: @Entity public class… May 16, 2026 at 5:34 pm
  • Editorial Team
    Editorial Team added an answer See: http://developer.apple.com/tools/xcode/xcodebuildsettings.html Basically, you need to go to the "Build"… May 16, 2026 at 5:34 pm
  • Editorial Team
    Editorial Team added an answer The bot is discarding session info and ignoring your cookies.… May 16, 2026 at 5:34 pm

Trending Tags

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

Top Members

Related Questions

We have a command line application that could benefit from a GUI. We want
I have a command line application that needs to support arguments of the following
I have a C# command-line application that I need to run in windows and
Summary I have written a process monitor command-line application that takes as parameters: The
I have an application that resides in a single .py file. I've been able
Disclaimer: I'm completely clueless about .net and COM. I have a vendor's application that
I have an application that is built as a Windows Service and a c#
I have an application that uses an external jar. I used eclipse and it
I am building an application that calls upon a compiled executable. Said executable's source
I'm working with a legacy WebLogic application that contains a web-service application and a

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.