This tip was submitted to the searchWin2000 Tip Exchange by member Jim Ruby. Let other users know how useful it...
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
is by rating the tip below.
Use your PROMPT in a CMD window to keep an eye on where you are. I PUSHD/POPD all day long and sometimes get more drives connected than I can keep track of. By using two extensions to the PROMPT command, I can now tell exactly what I'm connected to all the time.
- Use the $+ parameter to include a plus sign for every outstanding PUSHD you've done.
- Use the $M parameter to show the remote name of the drive you're currently connected to. My prompt string, as shown in the code, displays a prompt like the following when I've PUSHD'ed to a remote drive:
NetServerc Thu 04/04/2002 15:19:42 Y:Winnt +Y:>In a quick glance, I can tell I'm connected to the Netserver C share after PUSHD'ing once.
Here's a quick synopsis:
$m - display the remote share name $_ - newline $d - date $t - time $h - three of these erases the hundredths of a second, sometimes you just don't need that much detail! $p - current drive and path $+ - how many outstanding PUSHD's $n - current drive, just an extra reminder $g - greater-than sign set prompt=$m$_$d $t$h$h$h$_$p$_$+$n:$g