1 Reply Latest reply on Aug 26, 2009 3:21 PM by TKnTexas

    Create and run batch file based on data.

    WillGonz

      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 

        • 1. Re: Create and run batch file based on data.
          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.