-
2020-10-19 15:03:14
@echo off >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" if '%errorlevel%' NEQ '0' ( goto UACPrompt ) else ( goto gotAdmin ) :UACPrompt echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs" "%temp%\getadmin.vbs" exit /B :gotAdmin if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" ) start C:\Windows\System32\cmd.exe
window 压缩解压命令
单个:
对test.txt 压缩 解压 1.目标文件 2.生成文件makecab ./test.txt ./test.zip expand ./test.zip ./test.txt
文件夹:
对 /test/ 压缩 加压 【1.生成压缩文件,2.目标文件】【目标文件】tar -cvzf zip.tar "./test" tar -zxvf "./zip.tar"
更多相关内容 -
如何快速在当前文件夹中打开cmd或者以管理员身份打开cmd
2021-01-30 14:35:42That's it Shawn Windows 7: Open Command Window Here How to Use "Open Command Window Here" in Windows 7 Information This will show you how to use the Open Command Window Here context menu item of a ...Open Command Window Here as Administrator
Add or Remove "Open Command Window Here as Administrator" to Context Menu
EXAMPLE: Open Command Window Here as Administrator NOTE:This is the context menu with this added and you right click on a drive, folder, or on the desktop.
Here's How:
1.
Do
step 2, 3, or 4
below for what you would like to do.
2. Add "Open Command Window Here as Administrator" to Context Menu
A) Click/tap on the download button below to download the file below, and go to
step 5 below.
Add_Open_Command_Window_Here_as_Administrator.reg
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; http://www.sevenforums.com
; Tutorial: http://www.sevenforums.com/tutorials/47415-open-command-window-here-administrator.html
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Open command window here as Administrator"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
@="Open command window here as Administrator"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\Drive\shell\runas]
[HKEY_CLASSES_ROOT\Drive\shell\runas]
@="Open command window here as Administrator"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Drive\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas]
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas]
"HasLUAShield"=""
@="Open command window here as Administrator"
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
3. Add Shift + Right Click "Open Command Window Here as Administrator" to Context Menu
A) Click/tap on the download button below to download the file below, and go to
step 5 below.
Add_Shift+Open_Command_Window_Here_as_Administrator.reg
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; http://www.sevenforums.com
; Tutorial: http://www.sevenforums.com/tutorials/47415-open-command-window-here-administrator.html
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Open command window here as Administrator"
"Extended"=""
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
@="Open command window here as Administrator"
"Extended"=""
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\Drive\shell\runas]
[HKEY_CLASSES_ROOT\Drive\shell\runas]
@="Open command window here as Administrator"
"Extended"=""
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Drive\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas]
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas]
"Extended"=""
"HasLUAShield"=""
@="Open command window here as Administrator"
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
4. Remove "Open Command Window Here as Administrator" from Context Menu
A) Click/tap on the download button below to download the file below, and go to
step 5 below.
Remove_Open_Command_Window_Here_as_Administrator.reg
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; http://www.sevenforums.com
; Tutorial: http://www.sevenforums.com/tutorials/47415-open-command-window-here-administrator.html
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
[-HKEY_CLASSES_ROOT\Drive\shell\runas]
[-HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas]
5.Save
the
.reg
file to your desktop.
6.
Double click/tap on the downloaded .reg file to merge it.
7.
When prompted, click on
Run
,
Yes
(UAC),
Yes
, and
OK
to approve merging the .reg file.
8.
You can now delete the downloaded .reg file if you like.
That's it
Shawn
Windows 7: Open Command Window Here
How to Use "Open Command Window Here" in Windows 7
Information
This will show you how to use the
Open Command Window Here context menu item of a
folder or
driveto open a command prompt with the focus at the folder or drive location in Windows 7.
This will make it easier to perform a command task at that folder or drive location instead of having to open a command prompt normally and manually type the folder location in it using the
CD\ command.
Note
The Open Command Window Here context menu is only available for a folder, included library folder, or drive in Windows Explorer, Navigation Pane, and on the Desktop.
The Open Command Window Here context menu is not available for a Library or files (ex: exe, txt, etc...).
The Open Command Window Here context menu item only opens a normal command prompt and not an elevated command prompt.
Warning
This will not work with
Library folders.
EXAMPLE: "Open Command Window Here" for a Folder and Drive
Here's How:
1. Press and hold the
Shift key and
right click on the
folder or drive that you want to open a command prompt with the focus at, and click on
Open Command Window Here.
2. Release the
Shift key.
That's it,
Shawn
参考网站地址:
1.http://www.sevenforums.com/tutorials/47415-open-command-window-here-administrator.html
2.http://www.cnblogs.com/Wayou/p/3359993.html
3.http://www.sevenforums.com/tutorials/27778-open-command-window-here.html
-
任意位置以管理员身份打开CMD(命令提示符)
2021-05-11 15:07:01关于CMD这个东西,windows和linux还是有很大...为了提升效率,添加以管理员身份在当前文件夹打开CMD至右键。一、添加至右键1.新建文本文档,将下列脚本复制进去Windows Registry Editor Version 5.00; Created by...关于CMD这个东西,windows和linux还是有很大差别的,linux系统下可以在任意位置右键选择在当前文件夹打开终端,而windows没有这个功能,每次打开都是默认的位置,然后不停的cd。为了提升效率,添加以管理员身份在当前文件夹打开CMD至右键。
一、添加至右键
1.新建文本文档,将下列脚本复制进去
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; http://www.sevenforums.com
; Tutorial: http://www.sevenforums.com/tutorials/47415-open-command-window-here-administrator.html
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="xxx" #名称随意,此三处最好一致
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
@="xxx" #同上,此三处最好一致
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\Drive\shell\runas]
[HKEY_CLASSES_ROOT\Drive\shell\runas]
@="xxx" #同上,此三处最好一致
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Drive\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
2.名称随意,将拓展名txt改为reg,双击运行
二、从右键删除
1.新建文本文档,将下列脚本复制进去
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; http://www.sevenforums.com
; Tutorial: http://www.sevenforums.com/tutorials/47415-open-command-window-here-administrator.html
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
[-HKEY_CLASSES_ROOT\Drive\shell\runas]
2.名称随意,将拓展名txt改为reg,双击运行
(图片就不放了,懒得截图,反正就是右键没有了那个打开CMD的选项)
-
win10以管理员打开cmd怎么操作_windows10管理员cmd打开方法
2021-07-23 02:04:25不过有的用户可能不知道win10系统怎么以管理员身份打开cmd,其实方法有不止一种,那么win10以管理员打开cmd怎么操作?下面我们就一起来看看windows10管理员cmd打开方法。win10以管理员打开cmd方法:方法一:1、我们...相信许多用户都会使用到管理员打开cmd,有些权限只有从管理员的身份打开cmd才可以运行。不过有的用户可能不知道win10系统怎么以管理员身份打开cmd,其实方法有不止一种,那么win10以管理员打开cmd怎么操作?下面我们就一起来看看windows10管理员cmd打开方法。
win10以管理员打开cmd方法:
方法一:
1、我们可以在Windows10系统的开始菜单上,单击鼠标右键,这时候出现的菜单中,我们选择命令提示符(管理员)点击打开这样即可。
2、这样打开以后,大家可以看到命令提示符界面中显示管理员:命令提示符。现在我们就可以进行自己需要的命令操作。
方法二:
1、点击开始菜单,然后界面中我们这里选择所有应用打开进入。
2、所有应用中,我们在Windows系统中找到命令提示符,然后这时候在命令提示符上单击鼠标右键,选择以管理员身份打开命令提示符。
方法三:
1、这里我们在Windows10系统的搜索框中直接输入命令CMD。
2、然后搜索结果中,还是在命令提示符上单击右键,选择管理员身份运行。
3、最后我们对命令提示符程序的存放位置最好最下了解,位置在C:\windows\system32文件夹中,其实电脑的很多管理工具都在这里面可以查看到。
以上就是win10以管理员打开cmd方法,有不懂的用户可以根据以上步骤来操作,希望可以帮到大家。
-
windows10 设置始终以管理员身份运行cmd窗口
2021-05-26 14:51:05ctrl+r cmd打开 输入 cd c:\windows\system32 cmd.exe 把这个写个bat放在任务栏即可 -
设置快捷键 以管理员身份打开 cmd
2019-08-05 14:51:28点击 Win 键,打开命令提示符 -
CMD命令行中以管理员权限启动应用程序实现方法
2020-09-21 23:23:09主要介绍了CMD命令行中以管理员权限启动应用程序实现方法,本文使用一个JS脚本来实现,需要的朋友可以参考下 -
以管理员身份打开cmd
2018-09-07 14:24:36打开文件夹: 输入下面链接 C:\Windows\System32 在改文件夹中找cmd.exe 右键单击管理员运行 就完成操作 -
如何默认管理员身份打开cmd控制台
2020-10-24 10:56:291.搜索cmd,打开文件位置。 2.右击打开属性,选择高级。 3.勾选“以管理员身份运行”,确定,应用。 -
Win10 以管理员身份打开cmd及切换路径详细步骤
2020-12-04 20:13:28Win10 以管理员身份打开cmd及切换路径详细步骤 以管理员身份打开cmd 右击桌面左下角Windows标识,打开选项栏,点击Windows PowerShell(管理员)(A) 切换路径 输入 cd “D:\Program Files\mysql8\mysql-8.0.22-... -
通过 Win + R 默认以管理员身份打开 cmd
2021-03-25 17:33:10最近上数据库相关的课程,需要频繁打开cmd命令行,但本人早已习惯了Win+R的方式打开,默认是非管理员身份,导致许多操作会提示无权限。只能无奈的: 点开搜索框 输入cmd 右击 以管理员身份运行 … 那我要这键盘有... -
Win10 默认以管理员身份运行cmd
2020-11-17 09:17:00手动修改注册表 Win+R – regedit 找到以下位置 HKEY_CURRENT_USER\Software...,新建一个字符串值,命名为”c:\windows\system32\cmd.exe”,一般我们的系统都安装在C盘吧??? 然后右键–修改 – 数值数据写入“R... -
windows10右键添加以管理员身份cmd
2020-11-22 13:45:22windows10右键添加以管理员身份打开cmd1、编写注册表文件2、双击运行cmd.reg3、效果 1、编写注册表文件 先编写 cmd.reg.txt文件,输入一下内容,保存然后删除文件名的后缀.txt。 Windows Registry Editor Version ... -
使用管理员权限打开cmd(命令提示符)的方法 (Windows10)
2021-08-29 11:21:59本文介绍了几种使用管理员权限打开cmd(命令提示符)的方法,大家可以选择自己喜欢的使用。 -
Windows系统下mysql安装过程及以管理员身份运行cmd命令行问题合集
2021-05-18 21:32:261、通用可行的一些命令行及流程 以管理员身份打开 cmd 命令行工具,切换到mysql所在bin目录下: 如:cd C:\Program Files\MYSQL\bin 1、安装服务:mysqld --install 出现 The service already exists! 表明之前安装... -
【Python】在Windows下以管理员身份执行cmd命令
2020-07-18 10:59:25目标以及问题 我在完成一项任务中,需要杀掉一个弹窗进程,但是Windows下执行taskkill /im Au_.exe /f并没有杀掉进程,而是提示:拒绝访问该进程...还有就是一种在python程序中获取管理员的权限执行。 解决问题代码 def -
如何以管理员身份运行CMD
2020-01-14 15:17:19现在就教大家如何以管理员的身份运行cmd。 1、非管理员启动的cmd界面是这样的,标题栏没有写明管理员 2、首先打开C盘,window操作系统一般都是安装在C盘 3、打开Windows文件夹 4、打开 System32 文件夹 ... -
如何快速以管理员身份运行cmd命令符窗口
2021-11-02 14:49:22电脑快速以管理员身份运行cmd命令符窗口 解决方法: 以前以管理员身份运行cmd窗口都要去C盘的System32下找cmd.exe,现在我又学到了一招,简单点: 右键“开始”-》搜索-》输入打cmd窗口的命令,具体命令可参考... -
Windows Terminal 以管理员身份打开
2021-01-21 10:07:411、使用Powershell安装Gsudo PowerShell -Command "Set-ExecutionPolicy RemoteSigned -scope Process;... 2、配置Windows Terminal ...打开标签页,进入Windows Terminal的设置项 打开settings.json文 -
如何让cmd一直默认以管理员身份打开
2018-08-02 18:25:25一、手动修改注册表 首先 Win+R – regedit 找到以下位置 HKEY_CURRENT_USER\...,新建一个字符串值,命名为”c:\windows\system32\cmd.exe”,一般我们的系统都安装在C盘吧??? 然后右键–修改 – 数值数... -
Windows用管理员方式启动cmd (全面)
2021-08-11 18:25:00再以管理员身份运行 第三种 (效率最高) win + s 搜索 cmd 再回车确定即可 Ctrl + Shift + Enter 第四种 点击左下角开始菜单,再右击一下 有个命令提示符(管理员),点击即可 或者是 Windows PowerShell(管理员) ... -
如何用管理员权限打开CMD(快捷键)
2020-11-26 09:44:54近期给电脑重新装了win10系统,在使用cmd时发现执行...第一种:搜索cmd应用,然后点击以管理员身份运行 第二种:快捷键打开,先win+r 输入cmd,将下一步点击Enter 换为Ctrl+Shift+Enter,直接以管理员打开cmd。 ... -
Win10添加右键菜单以管理员方式打开cmd命令行
2020-05-13 10:05:31每次想要使用CMD命令行,都要 Win + R,输入cmd打开,然后再cd进入到目录下执行命令,感觉非常麻烦,然而Win10自带的右键菜单中的powershell没有管理员权限,所有想到要在右键中添加 以管理员方式打开CMD命令行 的... -
cmd一直默认以管理员身份打开
2018-09-28 11:34:25手动修改注册表 Win+R – regedit 找到以下位置 HKEY_CURRENT_USER\...,新建一个字符串值,命名为”c:\windows\system32\cmd.exe”,一般我们的系统都安装在C盘吧??? 然后右键–修改 – 数值数据写... -
windows 以管理员身份打开命令行窗口
2019-02-25 23:35:24经常碰到需要在命令行里以管理员身份才能操作的命令,这就需要我们在任意地方都能以管理员身份打开命令行窗口,只要简单地添加一份文件就可以实现啦: 1.新建一个文本文件,写入以下内容: Windows Registry Editor ... -
如何在D盘以管理员身份,运行cmd
2021-01-05 10:30:581. 先在开始位置,cmd,右键以管理员身份运行cmd; 2. D: 3. cd aa/bb/cc再切到指定目录 -
在当前目录直接用管理员身份证打开cmd
2020-09-14 10:37:01Windows Registry Editor Version 5.00 ; Created by: Shawn Brink ; http://www.sevenforums.com ; Tutorial: http://www.sevenforums.com/tutorials/47415-open-command-window-here-administrator.html [-... -
windows10怎么以管理员身份运行cmd
2019-07-07 17:34:44可以在Windows10系统的开始菜单上,单击鼠标右键,这时候出现的菜单中,选择命令提示符(管理员)点击打开这样即可。