推送和popd批处理
letthispostserveasaremindertome (andyouifyoudon ' tuseitallthetime ) thatpushdandpopdareavailableinwindows。
在这篇文章中,请提醒我,Windows提供推式和POPD。
certainlytabautocompletionisagoodness (itkillsmewhenihavetowatchsomeone,especially on stage,typelongdirsandfilesonecharatatatate
当然,TAB AutoCompletion是一个优势,当你必须看别人的时候,特别是在舞台上,扎长辫子一次输入一个字是非常生气的。 我容易忘记你甚至可以做更麻烦的事。 例如,情况如下:
c : (temptypemy *.ofx (nowpresstab ) ) ) )。
C: TEMP输入my * .ofx (现在是PRESS TAB ) ) ) ) ) ) ) ) ) ) ) )
and get:
然后,获得:
c:(temptypemyFiledata.ofx
C: TEMP输入myfiledata.ofx
but you can also
但是你也可以
c :temp pushd.c :tempcd 'documentsandsettingssh anselmdesktop '
c :documentsandsettingssh anselmdesktop popd
c :
C: TEMP已推送。 c: tempcd“ documentsandsettingssh anselmdesktop”c: documents和settingsshanselm桌面popd c: temtemtemd
shawnvannessviacraiganderamakethistipevenmoreusefulwhencombinedwiththeircommandpromptenvironmentvariable (remember when ' custtttvary ) Ah,the good not-quite-old days.) From Craig's post:
将Craig Andera中的Shawn Van Ness与命令中的PROMPT环境变量结合使用时,此技术会更有用。 请注意,“自定义操作系统”由4DOS的10行PROMPT语句组成。 )从Craig帖子中:
$P$_$ $G
$ P $ _ $ $ G
Which,whenisetitviaeitherthepromptcommandorthepromptenvironmentvariable,givesmeacommandlinethatloookslikethis 3360
在提示符命令或PROMPT环境变量中设置后,将显示类似于以下内容的命令行:
c :dataprojectsflexwikiflexwiki core
c: dataprojectsflexwikiflexwiki core
theplussesindicatethati ' mtwolevelsdeepinpushd,andilikethattheworkingdirectoryappearsonthelinebefore,obliteratingtheproble
加号表示pushd有两个级别,工作目录喜欢显示在前一行中,并且已经解决了用于换行命令的长路径问题。 好啊。
whataniceseriesoftipsforarandomthursday.thanks guys!
随机周四有很多好的提示。 谢谢你!
从3:https://www.pgdt.com/blog/prompts-along-with-pushd-and-popd翻译
推送和popd批处理