Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I close a file after I have opened it using the edit command, my working directory changs to something funky. Here is what I did:

C:\Documents and Settings\josh> edit test.txt

  • I then type 'hello world' in file, save the file, and close. My working directory now looks like this:

C:\DOCUME~1\JO~1>

Any ideas?

Thanks.

share|improve this question

migrated from stackoverflow.com Jan 24 '10 at 16:02

This question came from our site for professional and enthusiast programmers.

2  
I think this may belong on superuser.com as it's not really programming related. When you ask your question there, you might want to add what version of windows you';re using (i.e., do you REALLY mean ms-dos as in WIndows 95/98, or Command in XP/Vista?). I'd suggest checking out Windows PowerShell. –  Code Duck Jan 23 '10 at 20:55

2 Answers 2

Seems it's a bug: Running EDIT Tool Switches Directory Listing to 8.3 Format

To restore the long file name format directory listing, type cd \ or type cd.. back past the folder being displayed in 8.3 format.

share|improve this answer

The EDIT command is not changing your directory, rather it's just displaying the same directory in 8.3 notation.

  • C:\Documents and Settings\ == C:\DOCUME~1\
  • C:\Program Files\ == C:\PROGRA~1\

It's nothing to be concerned about, it's just a holdover from the old days because EDIT.COM is an old 16-bit application.

share|improve this answer
2  
To be specific, edit.com runs in the 16-bit virtual machine, which is probably changing the working directory for that program's benefit. –  Anonymous Jan 24 '10 at 16:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.