Re: DOS command window handler
From: Demetrios Panayotakopoulos (dpanayotakopoulos_my_dat_at__my_ametro.gr)
Date: 09/06/04
- Next message: Eric den Doop: "Re: MAPI and outlook"
- Previous message: Edhy Rijo: "Re: Formatting a string for proper calculation"
- In reply to: Neil Waterworth: "Re: DOS command window handler"
- Next in thread: Sietse Wijnker: "Re: DOS command window handler"
- Messages sorted by: [ date ] [ thread ]
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
> >> >
> >> >
> >>
> >>
> >
> >
>
>
- Next message: Eric den Doop: "Re: MAPI and outlook"
- Previous message: Edhy Rijo: "Re: Formatting a string for proper calculation"
- In reply to: Neil Waterworth: "Re: DOS command window handler"
- Next in thread: Sietse Wijnker: "Re: DOS command window handler"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|