| 1. |
Solve : Changing CMD.EXE prompt and current working directory permanently? |
|
Answer» Hello, The standard prompt shows the current logged directory (the directory you are in). if you want to see "C:\" at the prompt, why not just type Or... just CD\ would do the same thing but then the OP would have to type his Prompt command each time or maybe set up a .bat file to create the required Prompt.. Creating the Shortcut to the Command Prompt as explained in my first response above does the lot with just ONE click and there are also other options available such as using a Window or Full Screen mode that the OP might get round to investigating.. Neither CD C:\ nor CD\ clears the version information which the Op describes as "Windows version crap", he'll have to type CLS as well!! The shortcut to Command Prompt will open either a clean Command Prompt Window or Full Screen as selected by the OP. Problem solved. Thanks a lot. I just used $_ to clean up the command prompt, but I can experiment a little more to figure out what I want.How will you know what directory you are in? Are you never, ever, going to be in another directory? I tried prompt $_ and got just a blinking cursor and a two line gap between commands. A nightmare! I just used $_ to feed the information that I had to a new line. I didn't want the information all on one line so I had to move it down. I added $P$G to the end of the "target" for the shortcut to put my current working directory as C:\> which is the current path. I'm pretty sure you know all of this, but here's where I have it now Target: C:\WINDOWS\system32\cmd.exe /K PROMPT Welcome Jacob Howarth!$_$V$_$T $D$_$_$P$G Start in: C:\ This under the shortcut tab that Dusty mentioned above. However, I have another problem, I was wondering if I could get it to not print the same prompt EVERYTIME I enter a command. For example my current cmd.exe window shows this Welcome Jacob Howath! Microsoft Windows XP Version [5.1.2600] 19:24:00.46 Tue 07/03/2007 C:\ However, whenever I type a command "cd" or something it prints the same information after each command is entered. I only want it to display at start up. Does anyone have any guidance? I would gladly appreciate it.If you just want a neat opening message, you might be better off leaving the prompt alone and making the shortcut target something like this C:\WINDOWS\system32\cmd.exe /K echo Welcome Jacob Howath! & ver & echo %time% %date% Unfortunately I cannot get %date% to show the 3 letter day of the WEEK ("Wed"), I think this depends on your locale, in my locale, English (United Kingdom) I just get dd/mm/yyyy eg 04/07/2007 but I believe in the English (US) locale you would get "Wed 07/04/2007" Thanks for the advice. It works perfectly. |
|