You don't mention which function you're using to write the file so I'll assume something like Write to Spreadsheet File or Write Characters to File. Both of these have a file path input. If you don't have a path wired to it, you get a dialog (this is all explained in the contect help for the function). So, to get rid of the dialog box, just wire a path constant to it or have a front panel path control that the user has to fill in before running the VI. Also, both of the functions I mention use the Open/Create/Repalce File function. This has an input for an Advisory Dialog but it is not wired. You might want to modify the VI and save it under a new name and location to avoid that as well.