Hi all,
I'm new to this forum, but hope to eventually be able to contribute something rather than asking
I am writing an import program that involves reading 1 text file into 4 separate 'temporary' dbf files, which are on approval appended into the 'real' datafiles.
No problems there, but I have to keep backup copies of the temporary files so everything can be traced back later in case of troubles.
I have to move these files into a *new* directory with the sequence number of the import; eg "C:\MYDATA\LUM00001\"
Since there is no MOVE FILE command, my guess is I have to use COPY FILE and then DELETE FILE to get rid of the original. (sigh) But how can I create a new directory?
COPY FILE won't create the directory for me and treat me to an error when I try. Asking the user where to backup the files is (unfortunately) no option.
Oh, and to top it all off, this solution needs to work on both Windows and MacOS.
Thanks for your help,
Jan.
I'm new to this forum, but hope to eventually be able to contribute something rather than asking
I am writing an import program that involves reading 1 text file into 4 separate 'temporary' dbf files, which are on approval appended into the 'real' datafiles.
No problems there, but I have to keep backup copies of the temporary files so everything can be traced back later in case of troubles.
I have to move these files into a *new* directory with the sequence number of the import; eg "C:\MYDATA\LUM00001\"
Since there is no MOVE FILE command, my guess is I have to use COPY FILE and then DELETE FILE to get rid of the original. (sigh) But how can I create a new directory?
COPY FILE won't create the directory for me and treat me to an error when I try. Asking the user where to backup the files is (unfortunately) no option.
Oh, and to top it all off, this solution needs to work on both Windows and MacOS.
Thanks for your help,
Jan.