Hello everyone, my problem is that when I press the button "Annuler" (=Cancel), it still saves the file to me even though I don't want it, how can I do that?
I put you the attached script.
Thanks
path_save = Pick Directory( "Où sauver les fichiers analyse rendement?" );
NAME = "_ANALYSE_RENDEMENT";
////////////////////////////////////// DEFINE DIR AND FILE NAMES (MONTH / YEAR) + CREATE DIR /////////////////////////////////////////////////////////
DAY_ = Day(Today());
MONTH_ = Month( Today() );
YEAR_ = Year( Today() );
HOUR_ = Hour(Today());
MINUTE_ = Minute(Today());
SECONDE_ = Second(Today());
If(MONTH_ < 10 , NAME_MONTH= "0" || Char(MONTH_), NAME_MONTH= Char(MONTH_) );
If(DAY_ < 10 , NAME_DAY= "0" || Char(DAY_) , NAME_DAY = Char(DAY_) );
NAME_TIME = "_" || Char(HOUR_) || "H" || Char(MINUTE_) || "M" || Char(SECONDE_) || "S";
//DIR_NAME = Char(MONTH_ )|| " - " || Word(1,NAME,"_") || "_" || Char( YEAR_ ) ;
DIR_NAME = Char( YEAR_ ) || NAME_MONTH || NAME_DAY || NAME_TIME || NAME;
If( Directory Exists( path_save || DIR_NAME ), , Create Directory( path_save || DIR_NAME ));