Page 2 of 2 <12
Topic Options
#153454 - 2006-01-01 08:03 AM Re: Installing executables on a remote machine
AstaaLavista Offline
Starting to like KiXtart

Registered: 2005-08-11
Posts: 111
Loc: Gujarat, India.
Hi All,
It worked, this time i specified the ip address instead of the machine name and i was able to install an executable on the remote m/c (yahoo messenger to be precise )

Top
#153455 - 2006-01-01 08:31 AM Re: Installing executables on a remote machine
AstaaLavista Offline
Starting to like KiXtart

Registered: 2005-08-11
Posts: 111
Loc: Gujarat, India.
Finally i got almost what i wanted.
Here's the sample script. although i will have to take care of many issues, but the bottleneck has been removed.
Code:
  
$computer = "10.19.20.25" ; ip of the remote computer
$RemotePath = "\\10.19.20.25\C$\TempPath\"
; path of the remote computer where the executable is to copied

Copy "c:\yahoo.exe" $RemotePath /C
;copy the executable from local to remote pc

$rc = fnRemoteExec('c:\TempPath\yahoo.exe', $computer)
;after copying execute it
? $rc


Top
Page 2 of 2 <12


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 809 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.05 seconds in which 0.024 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org