Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > API de Windows
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 30-01-2008
trohan trohan is offline
Miembro
 
Registrado: abr 2007
Posts: 16
Poder: 0
trohan Va por buen camino
Para fjcg

Amigo Fj, muchas gracias por el aporte que nos estas dando. Pero quisiera que me comentaras un ultimo detalle. En cuanto a lo ultimo que dijiste sobre ejecutar scripts, etc, remoto. Eso necesariamente necesita que se le diga el usuario con que se va a correr o serviria lo que yo intento hacer???, que ese usuario administrador que esta en todas las maquinas y que es con el que estoy logueado en la mia, sea tomado automaticamente por el programa(el que quiero hacer) como el usuario admin con el que quiero que corra la aplicacion cliente, sin necesidad de tener que especificarlo. NO se si me entiendes, lo que quiero hacer es que yo corra el programa en mi maquina y como el usuario(local o de dominio) mio es admin en todas las demas, la autentificacion quisiera que se hiciera con este, o lo que es igual Doble click en el programa y andando. Un saludo

Última edición por trohan fecha: 30-01-2008 a las 15:03:30. Razón: Ortografia y agregar algo
Responder Con Cita
  #2  
Antiguo 30-01-2008
Avatar de fjcg02
[fjcg02] fjcg02 is offline
Miembro Premium
 
Registrado: dic 2003
Ubicación: Zamudio
Posts: 1.410
Poder: 22
fjcg02 Va camino a la fama
Cita:
Usage: psexec [\\computer][-u user [-p psswd]][-s|-e][-i][-c [-f|-v]][-d][-<prio
rity>][-a n,n,...] cmd [arguments]
computer Direct PsExec to run the application on the remote
computer. If you omit the computer name PsExec runs
the application on the local system.
-u Specifies optional user name for login to remote
computer.
-p Specifies optional password for user name. If you omit this
you will be prompted to enter a hidden password.
-s Run the remote process in the System account.
-e Loads the specified account's profile.
-i Run the program so that it interacts with the desktop on the
remote system.
-c Copy the specified program to the remote system for
execution. If you omit this option the application
must be in the system path on the remote system.
-f Copy the specified program even if the file already
exists on the remote system.
-v Copy the specified file only if it has a higher version number
or is newer on than the one on the remote system.
-d Don't wait for process to terminate (non-interactive).
-priority Specifies -low, -belownormal, -abovenormal, -high or
-realtime to run the process at a different priority.
-a Separate processors on which the application can run with
commas where 1 is the lowest numbered CPU. For example,
to run the application on CPU 2 and CPU 4, enter:
"-a 2,4"
program Name of application to execute.
arguments Arguments to pass (note that file paths must be
absolute paths on the target system).

You can enclose applications that have spaces in their name with
quotation marks e.g. psexec \\marklap "c:\long name app.exe".
Input is only passed to the remote system when you press the enter
key, and typing Ctrl-C terminates the remote process.

If you omit a user name the process will run in the context of your
account on the remote system, but will not have access to network
resources (because it is impersonating). Specify a valid user name
in the Domain\User syntax if the remote process requires access
to network resources or to run in a different account. Note that
the password is transmitted in clear text to the remote system.

Error codes returned by PsExec are specific to the applications you
execute, not PsExec.
Para muestra un botón. Puedes ejecutarlo con el usuario con el que estás conectado ( por ejemplo el administrador del dominio ) o con uno que especifiques ( parametro -u).

Saludos
__________________
Cuando los grillos cantan, es que es de noche - viejo proverbio chino -
Responder Con Cita
  #3  
Antiguo 31-01-2008
trohan trohan is offline
Miembro
 
Registrado: abr 2007
Posts: 16
Poder: 0
trohan Va por buen camino
Ah y otra cosa

Ademas tambien quisiera que fuera el codigo como tal para hacer esto y no un progrma ya hecho, ya que mi interes es hacer uno similar. Ojala y alla alguna forma
Responder Con Cita
  #4  
Antiguo 31-01-2008
trohan trohan is offline
Miembro
 
Registrado: abr 2007
Posts: 16
Poder: 0
trohan Va por buen camino
Ah y otra cosa

Ademas tambien quisiera que fuera el codigo como tal para hacer esto y no un progrma ya hecho, ya que mi interes es hacer uno similar. Ojala y alla alguna forma de acceder a esto.
Responder Con Cita
Respuesta



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Cual es la Mejor forma de Agregar,Modificar y Eliminar en ADO ? LENOCB Varios 50 07-01-2008 04:04:47
agregar y/o eliminar items de un listbox a partir de otro listbox Goyo PHP 2 27-09-2007 16:46:30
Agregar Uses desde Templates Delphi 2006 xander Varios 0 13-04-2007 07:59:46
agregar a un outline desde una base de datos Debian Conexión con bases de datos 0 30-03-2005 19:49:36
Como agregar una banda en tiempo de ejecucion en otra pagina edo Impresión 2 29-07-2003 01:07:12


La franja horaria es GMT +2. Ahora son las 13:39:37.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi