|
-
Apr 7th, 2006, 07:34 PM
#1
Thread Starter
Addicted Member
Shell
How can we run a program under the "system" or other than the account that we are currently using on Windows XP.
-
Apr 7th, 2006, 07:36 PM
#2
Frenzied Member
Re: Shell
do you mean to run the program using any account on the pc? or what? Please clarrify
On error goto Trap
Trap:
in case of emergency, drop the case...
****************************************
If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option. if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar
-
Apr 7th, 2006, 07:38 PM
#3
Thread Starter
Addicted Member
Re: Shell
yes
Please open the task manager. and check under the User name tab
-
Apr 7th, 2006, 07:49 PM
#4
Frenzied Member
Re: Shell
if the program is installed using the administrator account, all users can access it.
Are those progs installed using the administrator Acc?
On error goto Trap
Trap:
in case of emergency, drop the case...
****************************************
If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option. if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar
-
Apr 7th, 2006, 08:19 PM
#5
Thread Starter
Addicted Member
Re: Shell
i think u misunderstood me.
I mean how can i run a program but not under my account. For example under the "System" like the files wich run by windows
-
Apr 7th, 2006, 08:25 PM
#6
Re: Shell
System is not a user account. You would have to make and run them as a process.
-
Apr 7th, 2006, 09:55 PM
#7
Thread Starter
Addicted Member
Re: Shell
and how could i do that ?
-
Apr 8th, 2006, 05:20 AM
#8
Re: Shell
Do you want to Run an application under a different account. You could use RunAs utility of the Windows Shell. Something like this
VB Code:
Dim winShell As Object
Set winShell = CreateObject("WScript.Shell")
winShell.Run "RunAs /Env /User:DomainName/UserName myExe"
Use [code] source code here[/code] tags when you post source code.
My Articles
-
Apr 8th, 2006, 05:43 AM
#9
Lively Member
Re: Shell
Interesting one this. My program also will need to copy files from a PC where other users have admin rights. Even if I log in as admin, those other admins can effectively hide their files by making them private. I'm writing code for a pe environment at the moment but if I can achieve this in Windows it would help. Anyone know if the RunAs command could help here?
Sorry Vntalk, I don't mean to hijack your thread but it is relevant. I'll learn how to run my app as a process with you!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|