Question

Locked

Customize DOS startup screen

By wats679 ·
When I start up my cmd.exe, I want a clear screen... I'm always having to type in cd\ and cls to get the look of the screen I want.
Is there a way to customize this?

This conversation is currently closed to new comments.

14 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Echo Off

by otaku_lord In reply to Customize DOS startup scr ...

My scripting is a little rusty but don't you need the 'Echo off' line added?

Collapse -

Modify the registry

by Kenone In reply to Customize DOS startup scr ...

→ HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Prompt

Change the prompt value to whatever you like, IE; $N$G brings you to the root of your current drive followed by a greater than sign (C&gt at the command prompt type prompt /? for a complete list of variables

Collapse -

can't find "prompt" in the environment folder

by wats679 In reply to Modify the registry

hi Kenone, thnx for the tip but I couldn't find any prompt folder or value in the registry path u provided. Shud i create it?

Collapse -

or you could just make a shortcut

by Kenone In reply to Customize DOS startup scr ...
Collapse -

AUTOEXEC.DOS

by oldbaritone In reply to Customize DOS startup scr ...

@ECHO OFF
CD \
CLS

Collapse -

Thought it was AUTOEXEC.NT?

by Churdoo In reply to AUTOEXEC.DOS

Look for the file AUTOEXEC.NT located in your %SYSTEMROOT%\SYSTEM32 directory. Edit the file and add the lines that oldbaritone has indicated, to the bottom of the file (although with CLS as the last command, the echo off line is pretty much useless).

Any customizations you want to add to your default CMD environment are made in AUTOEXEC.NT and CONFIG.NT.
--C

Collapse -

clear screen.... ok......

by CG IT In reply to Thought it was AUTOEXEC.N ...

but what's wrong with the DOS screen in the first place...

so you've got to type in the change directory command... big deal....

in actuality, I like having to use the commands, keep in practice.

It's like the Wizards in the new Windows 2008 /7/ whatever that are used to configure the boxes. Use the wizard and volia! but the theory behind why? The wizard users don't know.

Using the old ways or the manual ways shows you know the theory.

Collapse -

agree.. but

by wats679 In reply to clear screen.... ok..... ...

I totally agree with your points, believe me, I totally agree... but.. what's wrong in discovering another door to the same room?
It's only for my information that I'm asking this and also to know that our experts republicans have the knowledge to share with other republicans :)
you are totally right about the wizard assistance...

Collapse -

i tried, didn't work... help..!

by wats679 In reply to Thought it was AUTOEXEC.N ...

hi churdoo and baritone, i tried by adding baritone's script
@ECHO OFF
CD \
CLS
to the end of the lines on both the files CONFIG.NT and AUTOEXEC.NT
but that didn't make any difference.

I even tried replacing the texts on the files with just the script but even that made no difference.

Am I doing something wrong?
Have restored the default text for those files.

Collapse -

Create a shortcut

by IC-IT In reply to i tried, didn't work... ...

of the cmd.exe
Open it's properties.
Click on the Shortcut Tab
Paste this in the target -
%SystemRoot%\system32\cmd.exe /k cls \"%1"
Type this in the Start in box
c (if C is your system drive).

Back to Windows Forum
14 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums