运行 在用户模式下打开后管理员模式下的命令提示符?

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:

  1. Win 键 & R
  2. 在打开的框中输入CMD然后点击OK
  3. 输入:runas /profile /user:AAA “C:\programs\BBB.exe然后按Enter
  4. 输入管理员密码AAA
  5. Enter

希望有用。