Re: HOMEDIR and HOMEPATH environment variables

K

Kelly

Hi Michael,

This will do the same using a right click option:

[HKEY_CLASSES_ROOT\Directory\shell\Command Prompt Here]
@="Command &Prompt Here"

[HKEY_CLASSES_ROOT\Directory\shell\Command Prompt Here\command]
@="cmd.exe /k cd %1 "

Add Command Line to the Right Click (Line 26)
http://www.kellys-korner-xp.com/xp_tweaks.htm

Other than the above, modify the value for Prompt:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Control\Session Manager\Environment

$N - Current drive
$P - Current drive and path

%USERNAME% - Current Username
%COMPUTERNAME% - Local computer name
%USERDOMAIN% - Local domain name

The default prompt is "$P$G" (e.g. "C:\>"), some alternatives include:

[%computername%]$S$P$G to show the computer, drive and path
[%username%]$S$P$G to show the current user, drive and path
/xp_tweaks.htm

Top 10 Frequently Asked Questions and Answers
http://www.kellys-korner-xp.com/top10faqs.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top