powershell
「已注销」
欢迎关注微信公众号【我吃你家米了】,回复关键字【资料】获取各种学习资源
展开
-
在cmd中导入powershell module并执行——————不与powershell直接交互
powershell -command "& { import-module C:\Users\123\Desktop\1.ps1; show-calendar }" 先导入1.ps1中的function,然后立马调用 C:\Users\123\Desktop>powershell -command "& { import-module C:\Users\123\Deskt...原创 2020-01-08 04:04:40 · 2180 阅读 · 0 评论 -
powershell
powershell中的&在命令解释中的作用 powershell直接将使用双引号括起来的字符串当成文本处理,不会当作命令进行处理,要解决这个问题,我们可以直接在前面加上一个& eg: & "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" 又或者是这样的 & ("note" + "pad") ...原创 2019-08-11 02:00:49 · 564 阅读 · 0 评论