From 1b8ee467b1d5a6287e5d141589eed7aa14d3dc29 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 20 Jan 2011 12:00:18 +0000 Subject: [PATCH] Patch level : 10.0 888 Files correlati : lv4.exe Ricompilazione Demo : [ ] Commento : Cancellati i file tempioranei nell importazione fatture (CHIMA) git-svn-id: svn://10.65.10.50/branches/R_10_00@21482 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- lv/lv4500.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lv/lv4500.cpp b/lv/lv4500.cpp index b26999bbc..8f2502e2f 100755 --- a/lv/lv4500.cpp +++ b/lv/lv4500.cpp @@ -548,7 +548,14 @@ void TImporta_fat_app::elabora_file(const TFilename& tmpdir) TString app; app << "cg2 -0 -i" << tmpdir << "/*.ini"; TExternal_app primanota(app); - primanota.run(true); + primanota.run(); + TString files; + files << tmpdir << "/*.ini"; + TString_array res; + + list_files(files, res); + FOR_EACH_ARRAY_ROW(res, r, f) + remove_file((const char *) *f); } //ELIMINA_FILE: elimino tutti i file che ho elaborato DA IMPLEMENTARE