有没有在DOS命令提示符下等效源命令在bash或tcsh? [英] Is there an equivalent source command in dos command prompt as in bash or tcsh?

查看:139
本文介绍了有没有在DOS命令提示符下等效源命令在bash或tcsh?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道,在Unix世界中,如果您编辑.profile或.cshrc文件,你可以做一个源〜/ .profile或源〜/ .cshrc中,以获取有关当前会话的效果。如果我在系统变量改变的东西在Windows上,我怎么能拥有它,而无需退出命令提示符会话,并打开另一个命令提示符会话影响当前命令提示符会话?

I know that in the unix world, if you edit your .profile or .cshrc file, you can do a source ~/.profile or source ~/.cshrc to get the effect on your current session. If I changed something in the system variable on windows, how can I have it effect the current command prompt session without exiting the command prompt session and opening another command prompt session?

推荐答案

恐怕不行,但是你可以开始使用PowerShell,该工具不支持点采购。由于PowerShell窗口其实是建立在CMD让所有的DOS命令将继续努力,并且你获得新的权力,更多的权力。

I am afraid not, but you can start using Powershell, which does support dot sourcing. Since powershell window is really based on cmd so all your dos command will continue to work, and you gain new power, much more power.

这篇关于有没有在DOS命令提示符下等效源命令在bash或tcsh?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆