Ca doit marcher je suppose. Ajoute l'option showerror comme indiqué dans la documentation pour voir.
General Syntax Of NirCmd
nircmd.exe {showerror} [command] [command parameters]
The showerror parameter is optional. If you specify this parameter, an error message will be displayed on the screen if an error is occurred during the execution of the command. Otherwise, any error will be ignored. For example:
nircmd.exe showerror rasdial "dial1"
D'après la documentation il faut aussi que nircmd se trouve aussi dans l'ordinateur distant (directory c:\windows de l'ordinateur distant), sinon il faut obligatoirement ajouter "copy".
remote {copy} [\\computer] [NirCmd command]
Executes NirCmd command in a remote computer. if {copy} parameter is specified, NirCmd will copy itself to the Windows directory of the remote machine. You must specify this parameter if NirCmd doesn't exist in the Windows directory of the remote machine.
Message édité par dnlilas le 27-12-2006 à 14:52:50