China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-11 23:03
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] Using a batch file to terminate explorer.exe and reopen it under another user View 834 Replies 0
Original Poster Posted 2010-08-18 13:02 ·  中国 广东 清远 电信
新手上路
Credits 15
Posts 6
Joined 2007-11-30 11:00
18-year member
UID 104227
Gender Male
Status Offline
What I mean is, the currently logged-in user is not an administrator, and I want to open the administrator user's desktop without logging off (not the folder corresponding to the desktop).
runas /savecred /u:administrator calc.exe
taskkill /f /im calc.exe /t
taskkill /f /im explorer.exe /t
C:\WINDOWS\system32\runas.exe /savecred /u:administrator explorer.exe
The above commands can't achieve it.
Forum Jump: