This is a public Forum  publicRSS

Forum post

    WillGonz
    Create and run batch file based on data.
    Forum post posted August 25, 2009 by WillGonz, last edited February 9, 2012 
    736 Views, 1 Comment
    Title:
    Create and run batch file based on data.
    Post:

    I would like to write out a batch file based on data in my database.  Then I want to execute the batch file to perform DOS commands.  How could I do this?

     

    Thanks,

    WillGonz 

    Answer

     

    • TKnTexas

      This is something I have been getting ready to try.  I have a batch file that takes a parameter at the command prompt

       

      H:\copyap.bat mmddyy

       

      It then performs the batch file to move two files from one directory to another.  I would love to execute this by script, passing the parameter.  It would copy the files to the appropriate location, renaming as needed by the batch file.  My FMPro10 script would import the file.  Once all the scripts are completed, a second batch file would delete the files to keep from having them duplicated by another import in error.