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.

I'm studying IT and in my current class in learning the basic MS DOS commands (CD, DIR, TREE, etc...). At the school, I'm using windows 7, and I don't know how but I'm still able to run the old EDIT command in DOS.

However, in my Windows 8 (64-bit version) laptop I'm not able to run this command. I know that it's kind silly to ask for that once I can use a common text editor like: notepad or notepad++ but only as a way to recreate the environment hat I have in class I'm looking for a way to use the EDIT command.

I've heard some people talking about DOSBox or ExDOS as a solution but I don't know them.

share|improve this question

migrated from stackoverflow.com Feb 17 '13 at 3:24

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

4  
The question is: why is your class teaching you ancient technology; why they haven't taught you that MS-DOS is no longer in use, and that the current implementation of those commands is the Windows Command Prompt. –  John Saunders Feb 16 '13 at 23:36
1  
Have you tired using powershell? –  Ben Mordecai Feb 17 '13 at 4:02
    
If you want to use the edit command, say to be compatible with preexisting batch files or something, you could write your own edit.bat batch file that just runs another editor: notepad.exe %1. Another alternative is to use echo to create small text files as suggested in answer to a similar question posted here at Microsoft.com. –  User5910 Feb 17 '13 at 4:38
7  
Is this a computer history class?! –  Michael Hampton Feb 17 '13 at 7:21
1  
Win7 32-bit still has and can run 16-bit Edit.com, but obviously Win7 64-bit can't and so it's not included. Also see Modern text editor that mimics MS-DOS EDIT?, command line text editor like “edit” for windows x64, Replacement for edit.exe in 64-bit Windows cmd/powershell etc. –  Karan Feb 17 '13 at 18:49

2 Answers 2

While it will work differently (definitely the EDIT utility will not be the same), you can download a ready-made FreeDOS virtual machine and run in VirtualBox.

Or, if you have the access, install a 32-bit Windows in a virtual machine and run it there.

share|improve this answer

MS-Dos editor(edit.exe) is not present in Modern 64 bit windows. The only option is notepad. So I did this in the following way.

  1. Press Windows key+R -> type cmd and hit enter ->in thr taskbar right click on the Command prompt icon ->Click pin to task bar ->close commant prompt Now again Right click on the Command prompt icon(you have recently pinned) ->Right Click on Command Prompt -> Click Properties->In Shortcut tab write "%windir%\system32\" (without quotes) in the Start in box-> Click ok

  2. Open Command Prompt from Task bar(you have recent pinned command prompt icon in Task bar)

    *To View Command prompt(CMD) in full sreen Start CMD -> Right Click on Name Bar
    of CMD->Click Layout -> Increase Window Buffer Size width and height
    ****

  3. Type "notepad" without quotes.

  4. write your text and save

You have successfully Write,save and edit a text file x64 bit Windows using COMMAND PROMPT".

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.