Solved

Win3.11 MS-DOS Editor

Posted on 1998-11-08
3
193 Views
Last Modified: 2013-12-29
Using DOS 6.22 and Win 3.11.  I double-click on the MS-DOS Prompt Icon and when the screen comes up it gives me this for the prompt. ( c> )  I know that if I type prompt $p$g that it will give me this ( c:\> )  But I'd like to know how I can set it up to do it automatically?
0
Comment
Question by:r1tech
[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 Comments
 
LVL 2

Accepted Solution

by:
msledd earned 50 total points
ID: 1804895
Hi!

That's odd, it should default to C:\Windows or C:\
I'd check the command line for the MS-DOS prompt icon in Program Manager
select the icon and click alt+enter or select Properties from the File menu and then note where the .PIF file is located (which is what actually runs when the icon is double clicked)
It *should* be in C:\Windows and the command should be simply the path to the file ie:C:\Windows\MSDOS.PIF (I forget what the actual name is) -or- simply MSDOS.PIF since Windows is in your path a directory is not necessary in the cmd. line.

if this action proves fruitless, there is a utility that comes with Win 3.x called PIF Editor (pifedit.exe, I believe and you'll find it either in Windows or Windows\System) you can use it to add the prompt $p$g line to the command line of the PIF so that it is done for you.

Hope this helps!
Msledd
0
 
LVL 1

Expert Comment

by:TAUA
ID: 1804896
This is very simple to solve. Open Autoexec.bat in an editor like notepad or syedit. Change or add the following:
Prompt $p$g
save and exit. Reboot. Now everytime you exit Windows either through shut down or DOS prompt your promt will be:C:\> (i.e.
c:\current directory>) That is all there is to it. If you load ANSI.SYS in your config file you can even make it a diffrent color! DOS 6.22 has extensive help, at the DOS prompt type HELP PROMPT.
Hope that helps you.
TAUA
0
 

Author Comment

by:r1tech
ID: 1804897
Thank you I'll try it!
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

733 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