C:\TestCmd>> echo %CD%

C:\TestCmd               This is the reuslt

C:\TestCmd>> echo %CD:~0,2%

C:                             This is the reuslt

For more information: http://www.computerhope.com/sethlp.htm

posted on 2009-08-15 04:16  袁礼定  阅读(261)  评论(0编辑  收藏  举报