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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:51:23+00:00 2026-06-07T20:51:23+00:00

My current directory is C:\devel\test\ I would like to run something like command -m

  • 0

My current directory is “C:\devel\test\”

I would like to run something like command -m 'pwd'\data\test.xml and it act as though I entered command -m C:\devel\test\data\test.xml

If I were writing a script I would:

$pwd = pwd
command -m $pwd\data\test.xml

But not sure how to do this at the prompt.

update

This may be an IronPython issue. Using the command azhrei suggested below ipy -m ($pwd.path + "\data\test.xml") I get the following error:

Unhandled exception:
Traceback (most recent call last):
  File "C:\Program Files (x86)\IronPython 2.7\Lib\runpy.py", line 101, in _get_module_details
  File "C:\Program Files (x86)\IronPython 2.7\Lib\runpy.py", line 170, in run_module
  File "C:\Program Files (x86)\IronPython 2.7\Lib\pkgutil.py", line 456, in get_loader
  File "C:\Program Files (x86)\IronPython 2.7\Lib\pkgutil.py", line 466, in find_loader
  File "C:\Program Files (x86)\IronPython 2.7\Lib\pkgutil.py", line 422, in iter_importers
ImportError: Import by filename is not supported.

When I run ipy -m C:\devel\test\data\test.xml it works just fine.

  • 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-07T20:51:24+00:00Added an answer on June 7, 2026 at 8:51 pm

    Use %CD% at the command prompt, so:

    command -m %CD%\data\test.xml

    Or if you mean you’re having problems at the powershell prompt:

    command -m ($pwd.path + "\data\test.xml")

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

Sidebar

Related Questions

I have a process that changes its current directory, and I would like to
I would like to see my current directory structure as a tree such that
I'd like to get the current directory during a GNUmake file run put into
I would like to checkout file1 from CVS repository to the current directory. File1's
Is there an easy way to test if the current directory is inside a
I understand I can get current directory by $CurrentDir = Dir.pwd How about parent
I need to be able to run all tests in the current directory by
Our Java code (not the test code) reads files from the current directory, which
My java database applet program read the file from their current directory like FileInputStream
I've always mentally regarded the current directory as something for users, not scripts, since

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.