Solved

Navigate to .NET directory using DOD prompt

Posted on 2008-10-17
6
970 Views
Last Modified: 2012-05-05
I am trying to compile a web project and the directions tell me to Run the DOS command line and to go to the .NET Framework directory
cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
This command results in an "Invalid directory" message.
The desired directory does exist  - I can find it using Windows Explorer.

How do I get the DOS prompt to accept that command.  I think the dots are upsetting DOS.
0
Comment
Question by:dhapp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 5

Expert Comment

by:PaulKeating
ID: 22746147
The dots are absolutely not upsetting DOS.

If you can find the folder using Explorer then the folder path will appear in the Address line. If you don't have an Address line you need to check View | Toolbars | Address Bar.

Copy the path that appears in the Address bar to a DOS prompt and tell me what happens.

To do that,
(1) highlight the folder path in the address bar and select Edit | Copy
(2) open a DOS box, type CD followed by space
(3) click on the C: icon in the top left-hand corner and select Edit | Paste
(4) hit Enter.

By "tell me what happens" I mean, if it doesn't work, I need to see a screenshot of the DOS box with the error message and a screenshot of the folder you can see in Explorer.
0
 

Author Comment

by:dhapp
ID: 22746523
I used your suggestion prior to turning to EE for a solution.
The DOS command window does not support the Paste function.  There is no edit menu to pick from and control V produces ^V in the DOS environment.
DOS-Box.GIF
Explorer.JPG
0
 
LVL 5

Expert Comment

by:PaulKeating
ID: 22749908
The DOS command window does indeed support the Paste function.

You typed control-V to mean paste. That doesn't work.

Click on the C:\ icon in the top left corner, then select Edit | Paste.


0
Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

 

Author Comment

by:dhapp
ID: 22750510
Paul,

You are correct.  The small C:\ icons does provide a Paste Option.  I didn't know that.  Thanks.
I copied the full path from Windows Explorer.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
And pasted it into the DOS box.
Alas, another "Invalid Directory" error
DOS-Box.JPG
0
 
LVL 5

Accepted Solution

by:
PaulKeating earned 250 total points
ID: 22751362
Oh, now I see the problem.

You are running genuine old 16-bit DOS, not Windows. When I open what I call a "DOS box" it's actually a Windows command line. That directory is indeed invalid in 16-bit DOS, not because of the dots but because they are not 8.3 names.

You are getting a DOS box by running command.com. The instructions you are trying to follow don't mean that. Even if you switch to using the equivalent 8.3 folder names, it is unlikely that the compiler you are trying to run will work in a 16-bit virtual machine.

Instead: Start  | Run and open cmd.exe. That should give you a "DOS" box that looks like this (note the version at the top). On that command line, long filenames are ok.








dosbox.bmp
0
 

Author Closing Comment

by:dhapp
ID: 31507313
Nice job.
Thanks very much.
I never knew that there were two different DOS boxes.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question