mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
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:
@ -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';
|
||||
|
@ -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\';
|
||||
|
Reference in New Issue
Block a user