Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create an exe file to run as DOS command line

Status
Not open for further replies.

csnjava

Programmer
Jul 11, 2009
3
BR
Hello,

I am not from a DBase background. A friend needs help.
She needs to execute a sequence of commands to create a
table (file) at a DOS prompt, outside dbase.
By the looks of my search, an exe file can be created
(compiled) so that I can run in a DOS batch file.

The whole idea is execute those commands automatically
every hour by Window schedule task.

Could you please tell me how I could generate such exe file
from Dbase III plus?

Similarly, one way to do ftp outside ftp prompt is to
> ftp [-s:filename]
If I had something like
> dbase [-s:filename with commands]
it would be great and would be an alternative to the
> generatedDbfCommand.exe

thank you very much indeed.
John
csnjava-dbase (at) yahoo.com.br
 
csnjava,

I would use a complied program to create this type of DBF file. But you should be able to create a prg that will run from within dBase. Have you're scheduler call "DBASE PROGRAM". PROGRAM will be the source to create a DBF in the stucture you need, and place it down the proper path. If it is the same structure everytime that is pretty straight forward. If it is a different structure you will need to have a good understanding of coding dbase to make that happen. You can make this happen from within a DOS batch file if needed.

Jim C.


 
Hi Jim,

Thanks for your reply.
My apologies I did not express my question clearly as
I am asking on behalf of colleague at a distance.

Yes, she also needs a compiled program to create a DBF

Actually she has .PRG file which produces a .DBF
as a result of its operation.

I don't know if it is too obvious but this friend has
an old DBase III Plus environment and she opens up this
DBase application, loads the .PRG and execute
to produce a .DBF

This is unnecessarily repetitive.
Compiling this .PRG into .EXE is what she needs.
She programs in DBase since a short while.
I told her over the phone to compile but I don't know
if DBase provides command line to compile or menu for that.

I feel myself powerless as I am from a software background
but never had contact with DBase at all.

Hope to hear from you again.

John


 
dBase itself doesn't produce a complied program. Clipper is what I use to create compiled PRG's into an executable program. You can execute the PRG thru a batch file without having to go into dBase yourself. As I mentioned in my initial response you can call dBase and the PRG thru a batch file and exit back out, the only thing you would need to do is it the "ENTER" key as you enter dBase.

Jim C.
 
Now I see! Just do
DBASE FILENAME.PRG as you said.

Actually I asked the person to do DBASE -help as I normally do to find the minus switches as in FTP application. Since it complained I thought that doing DBASE PRG in a batch (.cmd) file would not work and she did not try that.

thank you very much indeed.
John


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top