S
Stefan van der Hooft
Hi!
I have created a form where user scan upload their files. Users select their
files with the function: ahtCommonFileOpenSave and this result is set into a
variable called “strInputFileNameâ€.
What I want is that the file will be copied to a directory, using FileCopy
or something else. At this moment, the filecopy function works like this:
FileCopy strInputFileName, "D:\Test" & ".xls"
But the problem is, that I have to give the destination a name as well, even
though users select different files, it will be named in the destination
folder as Test.xls
Does anyone know how I can get the name and extension of the source and put
this file with its original name and extension into another folder?
Kind Regards, Stefan van der Hooft.
I have created a form where user scan upload their files. Users select their
files with the function: ahtCommonFileOpenSave and this result is set into a
variable called “strInputFileNameâ€.
What I want is that the file will be copied to a directory, using FileCopy
or something else. At this moment, the filecopy function works like this:
FileCopy strInputFileName, "D:\Test" & ".xls"
But the problem is, that I have to give the destination a name as well, even
though users select different files, it will be named in the destination
folder as Test.xls
Does anyone know how I can get the name and extension of the source and put
this file with its original name and extension into another folder?
Kind Regards, Stefan van der Hooft.