How to execute a batch file with pascal? -
how can execute batch file pascal ?
i seek this, doesn't work :
program program_; uses dos; begin exec('c:\users\vincenzo\desktop\file batch.bat',''); readln; end.
what have ?
you can seek shell command: http://www.freepascal.org/docs-html/rtl/unix/shell.html
for example:
program batchfileexec; uses unix; begin shell('yourbatchfilename'); end.
just type file's name in shell command.
pascal
No comments:
Post a Comment