Try running the program from a shortcut using the XP compatibility mode for Win95 or Win98 applied to the shortcut. I think this selects "command.com" automatically for you when it opens the command shell.
Safest approach is to put all exe's, dbf's, and ntx files into the same folder and run the .exe from there. Data in dbf's should be picked up from that folder unless programmer has coded specific paths into the program itself.
As long as exe's are doing the job, you won't need Clipper itself...
A few years ago I had NTX corruption on a Win 2K server, so I did all the database operations locally on the workstation and then copied the database back to the server for storage. If you have multiple users simultaneously updating the db from the server, then this might not be possible...
Set the printer up as a shared printer through a server or PC, ie., \\server\sharename.
Then,
RUN ("Net Use lpt1 \\server\sharename /persistent:yes")
All lpt1 output will be routed to the shared printer with this command.
To disconnect, RUN ("Net Use lpt1 /delete")
HTH.
I found the CLUT program on the Simtel web site and it allows you to work with CDX index files as well as NTX in a DBU format. It is a lot more versatile than DBU.
http://www.simtel.net/pub/pd/13996.html
Use "command.exe /c" if you are running under Win 9X.
Use "cmd.exe /c" for Win 2K and (maybe, XP - I haven't tried XP with Clipper yet).
For Windows 2000, you'd be better off using the short file name path for the Word program in your RUN command (if you don't want to use a batch file as suggested by TonHu):
C:\PROGRA~1\MICROS~1\OFFICE\WINWORD.EXE
M$ (intentionally?) wrecked some of the DOS command compatibility between W9X...
If it's linked in "real mode" it may not run at all in XP.
XP has a "compatibility mode" feature where you can make the exe think it's running in a Win 9X environment. Have you tried that?
Here's the web site for the AutoIt home page:
http://www.hiddensoft.com/AutoIt/
For Ton Hu - here's the script:
run,notepad.exe %1%
send,!f
send,t
send,{TAB 5}
send,.75{TAB}
send,.75{TAB}
send,{DEL}{TAB}
send,{DEL}
send,{ENTER}
send,!e
send,f
send,courier new{TAB}
send,bold{TAB}
send,10{ENTER}...
There is a program out there on the Web named "AutoIt" that lets you create *.exe's out of its "macro" capabilities for Windows. With AutoIt, I made a little program that sets margins and fonts in Notepad before printing a text file. In my Clipper code, I shell out to the...
I've used Clip-4-Win for 6 years now and am very comfortable with it. However, it creates 16-bit programs which are not too much in favor these days. But, I've run the same program version on Win 9X, Win 2K, and Win XP without any problems.
Took about 6 months to learn how to structure the...
I got curious about this question snd wrote some small test prgs. So, FWIW:
Using Clipper 5.3b, Exospace, and NTX indices:
cDBF:="DBF"
cIDXKEY:="FIELD"
cIDXF:="TEMP"
The following code worked:
USE (cDBF)
INDEX ON &cIDXKEY TO (cIDXF)
USE (cDBF) INDEX (cIDXF)...
>> All I want it to do is to print some plain Ascii-reports. I allways write the the (ascii)reports to a file, show it on the screen, and then the I can decide to have it printed by pressing a function-key. <<
Have you tried printing your file from a WIN 98 DOS window with Notepad?
ex.: RUN...
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.