how to create a text file from VFP?
I want to create a text file with filename: mybackup.txt
with the content:
mysqldump -%1 -%2 %3 > %4
Thanks for the help.
I have tried with batch file, it works perfectly, thank you so much.
if I call directly with ShellExecute(), it doesn't work, it has to be with batch file.
I want to hide the DOS command box, for the command:
RUN mysqldump -umyid -pmypass admdata > c:\backup1.txt
I was suggested to use ShellExecute.
How can I do that?
I'm using VFP 9.
Thanks for the help
Thanks for the input.
I have a form with plenty of options, the clients can choose certain date, certain files, etc. it's easy to manage within the form and then execute the backup.
I want to run the backup using mysqldump.exe
I'm using VFP 9 with MySQL database.
I tried:
RUN mysqldump -umyid -pmypass admdata > c:\backup1.txt
RUN /n mysqldump -umyid -pmypass admdata > c:\backup2.txt
RUN mysqldump -umyid -pmypass admdata > c:\backup3.txt /n
the first one (without /n)...
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.