天极Yesky
  • 笔记本电脑
    笔记本
  • 台式电脑
    台式机
  • 手机
    手机
  • 电脑硬件DIY
    DIY硬件
  • CPU
    主板
    音箱
  • 硬盘
    显卡
    键鼠
  • 内存光驱
    显示器
    机箱电源

  • 数码相机DC
    数码相机
  • MP3播放器
    MP3/MP4
  • 数码摄像机DV
    摄像机
  • 电脑外设
    外设
  • 网络
    网络
  • 服务器
    服务器
  • 数字家庭
    数字家庭
  • 群乐
    群乐
  • 产品报价 行情 经销商 渠道 评测 | 软件 设计 网页 开发 安全 论坛 E时代 游戏 图片 壁纸 下载 网摘 博客 索尼专区 Vista 科技奥运
    天极网
    Keep track of connections with extensions to the PROMPT command
    作者: Sara Cushman
    出处:
    责任编辑:
    [ 2004-06-17 19:16 ]


    This tip was submitted to the searchWin2000 Tip Exchange by member Jim Ruby. Let other users know how useful it 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 
    

    笔名:
    请您注意:

     遵守国家有关法律、法规,尊重网上道德,承担一切因您的行为而直接或间接引起的法律责任。

     天极网拥有管理笔名和留言的一切权利。
    相关内容