By default, set more reasonable SQL output file to <user name>\Application Data\<database>.sql, instead of <progam files>\HeidiSQL\export.sql . See also http://www.heidisql.com/forum/viewtopic.php?p=3156

This commit is contained in:
Ansgar Becker
2009-04-19 06:15:43 +00:00
parent 34520be50c
commit 1d56021ee5
2 changed files with 3 additions and 1 deletions

View File

@ -278,7 +278,7 @@ begin
Height := GetRegValue(REGNAME_EXP_WINHEIGHT, Height);
if EditFileName.Text = '' then
EditFileName.Text := ExtractFilePath(paramstr(0)) + 'export.sql';
EditFileName.Text := DirnameUserAppData + goodfilename(Mainform.ActiveDatabase + '.sql');
// Tell the user how to use the table pattern
EditFileName.Hint := 'Usage for generating one file per table: c:\foo\bar_'+TABLENAME_PATTERN+'.sql';

View File

@ -1320,6 +1320,8 @@ begin
// User folder for HeidiSQL's data (<user name>\Application Data)
DirnameUserAppData := GetShellFolder(CSIDL_APPDATA) + '\' + APPNAME + '\';
// Ensure directory exists
ForceDirectories(DirnameUserAppData);
// Folder which contains snippet-files
DIRNAME_SNIPPETS := DirnameCommonAppData + 'Snippets\';