Results 1 to 9 of 9

Thread: Shell

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2005
    Posts
    230

    Shell

    How can we run a program under the "system" or other than the account that we are currently using on Windows XP.

  2. #2
    Frenzied Member d3gerald's Avatar
    Join Date
    Jan 2006
    Posts
    1,348

    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

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Dec 2005
    Posts
    230

    Re: Shell

    yes
    Please open the task manager. and check under the User name tab

  4. #4
    Frenzied Member d3gerald's Avatar
    Join Date
    Jan 2006
    Posts
    1,348

    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

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Dec 2005
    Posts
    230

    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

  6. #6
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Shell

    System is not a user account. You would have to make and run them as a process.

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Dec 2005
    Posts
    230

    Re: Shell

    and how could i do that ?

  8. #8
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    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:
    1. Dim winShell As Object
    2.     Set winShell = CreateObject("WScript.Shell")
    3.     winShell.Run "RunAs /Env /User:DomainName/UserName myExe"
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  9. #9
    Lively Member
    Join Date
    Jun 2005
    Posts
    89

    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
  •  



Click Here to Expand Forum to Full Width