powershell安装和使用--学习入门
前言简单点说,powershell是window系统中,比cmd更好用的命令行工具,功能更加强大。【1】打开powershellpoweshell不需要安装,win10系统自带。在搜索框中搜索即可。打开之后是这样的:【2】设置右键打开powershell我的鼠标右键中,找不到powershell,但是经常用到,怎么办呢?回到桌面等空白处,同时按下window+R,然后输入regedit进入注册表:
前言
简单点说,powershell是window系统中,比cmd更好用的命令行工具,功能更加强大。
【1】打开方式
(1) 通过搜索框打开powershell
poweshell不需要安装,win10系统自带。
在搜索框中搜索即可。
打开之后是这样的:
(2) 桌面开始菜单右键打开powershell
我的开始菜单右键中,找不到powershell,但是经常用到,怎么办呢?
回到桌面等空白处,同时按下window+R,然后输入regedit
进入注册表:
找到HKEY_CLASSES_ROOT\Directory\shell,新建项–powershellmenu
在右侧的默认项上双击,填入 Open PowerShell Here
在powershellmenu下右键新建项,命名为command
在command的右侧,双击默认项,填写下面的内容:
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -windowstyle hidden -Command $stpath = pwd; Start-Process PowerShell -ArgumentList \"-NoExit\", \"-Command Set-Location -literalPath '%V'\"
(3) 文件夹中打开powershell
按住shif+鼠标右键
【2】操作vcpk
(1) 进入vcpk的目录下
命令 cd vcpk
(2) 查看
输入vcpk,然后按Tab键,会自动填充_命令行 _为.\vcpkg.exe
查看一些命令行说明:
查看有哪些库:
命令行:.\vcpkg.exe search
得到:
也可以将库名保存为txt文件:
命令:.\vcpkg.exe search>>search.txt
得到:
(3) 安装第三方库
安装库:
命令**.\vcpkg.exe install 【库的名字】**
更多推荐
所有评论(0)