I have the following code in a program:
#DEFINE INTERNET_FLAG_PASSIVE 134217728
DECLARE INTEGER FtpSetCurrentDirectory IN wininet;
INTEGER hftpSession, ;
STRING cPath
hOpen = InternetOpen (sAgent, 1,;
sProxyName, sProxyBypass, lFlags)
fPath='/ajp/entry/ajp89f01/ADLRECVD'...
ddiamond,
I intercept files from a Windows 2K server, with ASCII data. I then edit these files in Visual Foxpro & copy back out to flat files for input to a Sun Solaris Unix server.
The Unix server kept rejecting the data.
Took forever to figure out, but after I started inserting an...
rowr308,
Windows ftp.exe will only work in Active mode. You probably need to switch to the Windows API to FTP in Passive mode. At least that was the problem I ran into on our secure server.
Take a look at my thread in the Win API(Microsoft) forum on this site. I posted a question there...
Sorry EC,
I forgot to tell you the explanation for the error.
'ntvdm' is an acronym for 'NT Virtual Dos Machine'. Windows creates a separate space in memory which runs the DOS kernel. But NT and Windows kernels are not compatible.
Windows ME and above started using the NT kernel, hence a...
EC,
Look up the ForceDos command in your Windows Help. I had a problem with an insurance agencies software, developed in FoxPro for DOS, and trying to run it on WinXP. It required the ForceDos command to get it to run under WinXP. It sounds like a Windows problem to me.
The ForceDos command...
Thanks again to Dave Summers for a utility on his site which has the formula to convert hex to integer. The value to be passed to InternetConnect for Passive mode is 134217728. Worked like a charm! So the command should be:
hftpSession = InternetConnect (hOpen, lcHost, 0, lcUser, lcPwd...
The following is partial code I downloaded from www.davesummers.net/foxprolinks.htm.
DECLARE INTEGER InternetOpen IN wininet;
STRING sAgent, INTEGER lAccessType, STRING sProxyName,;
STRING sProxyBypass, STRING lFlags
DECLARE INTEGER InternetConnect IN wininet.DLL;
INTEGER...
I think I need to revise my question. What I really want to do is script IE. I figured that the WIN API would be needed. However, I'm not even sure whether scripting IE is possible. Is it?
Any input is appreciated>
Pat
I am trying to download files from a Sun Solaris(unix) server from a Win XP machine. I have been doing this via a couple different FTP programs for years. However, with a new firewall installed on the XP machine, it requires FTP in passive mode. The Win XP ftp.exe will not do passive mode...
...oExcel.WINDOWS("Bsl.xls").ACTIVATE
OExcel.ROWS("2:32000").SELECT
oExcel.SELECTION.DELETE
oExcel.Visible = .T.
* Destroy the Automation object variable
oExcel = Null
The trick is the last line: oExcel = Null
If you want the VBA code, open Excel. Under Tools/Macros select Record new macro...
Thank you, Mike Lewis!
Go Recno() did the trick. I can now get rid of the troublesome index file. The app will now be much stabler.
Also thanks to everyone who responded to this question.
Thanks Mike!
oNet.MapNetworkDrive...... worked like a charm!
For some reason the Net Use command worked also, from the Command Prompt.
It would not, however, connect from VFP 5.0.
I don't know what the deal is there, but the other tip worked great, so I am happy!
Thanks again!
Pat
I have an app that needs to be mapped to a server 8 miles away. My problem is the shared folder on the server has a space in the folder name.
The 'Net Use' command below does not work.
I have also tried 'Benchs~1', 'Bench ~1'.
I am working in VFP 5.0 and the app will be run on Windows NT 4.0...
Mike,
By 'shake it a little', I mean 'move the pointer in the table' to get the grids linked to the single entry table to refresh. I imagine there are other ways to do it, but since the whole table amounts to one row, 9 characters wide, and the grids never get focus, it was simplest to reindex...
I have a simple VFP5 app, running on about thirty machines, that is continually failing because of a corrupt .cdx file.
It has single record, one C(9) field, table to enter the info to look up, which is linked to two others tables by that field.
After entering one part number, I have to 'shake'...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.