Re: DOS command window handler

From: Demetrios Panayotakopoulos (dpanayotakopoulos_my_dat_at__my_ametro.gr)
Date: 09/06/04


Date: Mon, 6 Sep 2004 08:48:21 +0300

Hi Neil,

Thanks for your reply.
rexec allows you to remotely execute a command on a unix computer.
You just issue a single line that includes the unix host, login name and the
command you want to execute.
After issuing rexec, it asks for your password.
Leonid's example solved my problem, because it allowed me to use either
telnet or rexec.

Demetrios, Greece

"Neil Waterworth" <nospam_or_nwaterworth_at_lineone_dot_net> wrote in
message news:OVydGYgkEHA.3852@tk2msftngp13.phx.gbl...
> Not too sure on what rexec does, but there's a Winsock ActiveX control
which
> could help you out.
>
> ows = CreateObject("MSWinsock.Winsock")
>
> Better to look at the VB docs for this one and convert, because there's
> little VFP stuff out there. One gotcha is it needs the dot Object syntax
in
> VFP, i.e. oObject.Object.Method(). This is only from memory from past
> projects, so sorry for any inaccuracy.
>
> "Demetrios Panayotakopoulos" <dpanayotakopoulos_my_dat@_my_ametro.gr>
wrote
> in message news:%23559P%23YkEHA.1404@TK2MSFTNGP09.phx.gbl...
> > Hi Leonid,
> >
> > Thank you so much. It did work.(and in windows 2000).
> > I wanted to use rexec to execute a program on a unix and rexec of course
> > expected a password.
> > So I wanted to be able to send commands.
> > It really solved my problem.
> >
> > Do you know any alternative method using windows sockets
> > or using "wininet", like in ftp.
> >
> > Demetrios, Greece
> >
> > "Leonid" <leonid@NOgradaSPAM.lv> wrote in message
> > news:%23qW$NwYkEHA.3756@TK2MSFTNGP11.phx.gbl...
> >> Something like this? (WinXP)
> >>
> >> Declare Sleep In Win32API Long
> >> WshShell = CreateObject("WScript.Shell")
> >> WshShell.Run("cmd")
> >> Sleep (100)
> >> WshShell.SendKeys("dir{Enter}")
> >> Sleep( 500)
> >> WshShell.SendKeys("exit{Enter}")
> >>
> >>
> >> Leonid
> >>
> >> "Demetrios Panayotakopoulos" <dpanayotakopoulos_my_dat@_my_ametro.gr>
> > wrote
> >> in message news:e1gcuSYkEHA.3152@TK2MSFTNGP12.phx.gbl...
> >> > Hi,
> >> >
> >> > Can I open a DOS Command Prompt Window and get it's Window Handler
> >> > using
> >> VFP
> >> > 6?
> >> > I would like to open the DOS window and then type/send into it
commands
> >> > through VFP.
> >> > Batch files can't help me in my case.
> >> >
> >> > Demetrios, Greece
> >> >
> >> >
> >>
> >>
> >
> >
>
>



Relevant Pages

  • Re: Problem with Runtime.exec() and compound commands in Solaris
    ... In the uninstall process i'm trying to execute the follow unix ... if I run this command from a terminal it runs as expected. ... e) The shell ...
    (comp.lang.java.help)
  • Re: [opensuse] Installation methods
    ... Kenneth Schneider wrote: ... That seems to be a UNIX ... Back up one directory, and run the command ... you need the ability to Read the file and eXecute it. ...
    (SuSE)
  • Re: unix() - Could not load program...
    ... Am I in a wrong shell, or maybe my Matlab version is not 64-bit ... should not affect the ability to execute 64 bit binaries via the unix() ... as MATLAB will execute the commands in a new shell. ... the command used in the unixcall works perfectly fine ...
    (comp.soft-sys.matlab)
  • Re: [opensuse] Installation methods
    ... That seems to be a UNIX ... Back up one directory, and run the command ... you need the ability to Read the file and eXecute it. ... UNIX since 1989, linux since 1994, SuSE since 1998 ...
    (SuSE)
  • Re: problem in rexec command
    ... I have seen that rexec service is working. ... it is giving error "invalid argument" ... giving some thing wrong in command. ... Command to execute = date ...
    (uk.comp.os.linux)