运行 在用户模式下打开后管理员模式下的命令提示符?
Running command prompt in Administrator mode once it is open in user mode?
我已经编写了我的代码,但我必须将文件复制到位于 C: 的启动中,为此我需要管理员请求。那么,你能帮我使用非管理员命令行获得管理员权限吗?有什么命令可以到达那里吗?
For example, the administrator account is AAA and you want to run BBB.exe of C:\programs
, you should do these following steps:
- 按 Win 键 & R
- 在打开的框中输入
CMD
然后点击OK
- 输入:
runas /profile /user:AAA “C:\programs\BBB.exe
然后按Enter
- 输入管理员密码
AAA
- 按
Enter
。
希望有用。
我已经编写了我的代码,但我必须将文件复制到位于 C: 的启动中,为此我需要管理员请求。那么,你能帮我使用非管理员命令行获得管理员权限吗?有什么命令可以到达那里吗?
For example, the administrator account is AAA and you want to run BBB.exe of
C:\programs
, you should do these following steps:
- 按 Win 键 & R
- 在打开的框中输入
CMD
然后点击OK
- 输入:
runas /profile /user:AAA “C:\programs\BBB.exe
然后按Enter
- 输入管理员密码
AAA
- 按
Enter
。
希望有用。