This works fine with one exception, if I run the Dir() against the folder it returns the following since there are two files in the folder.
161931.zip;435411;2013-12-20;08:43:54
459589_Events.zip;36674;2013-12-20;08:46:02
If I use the $FileDate = Extract(Dir(),";",1) + ";" + Extract(Dir(),";",3) it returns
161931.zip;2013-12-20
which is what I need for the first part of the macro. For the next part of the macro I need to pull the File Name and File Date from the second line, which would be;
459589_Events.zip;2013-12-20.
However if I try using $FileDate = Extract(Dir(),";",5) + ";" + Extract(Dir(),";",7) it returns;
36674;08:46:02
which is the File Size and File Time for the second line.
If I try $FileDate = Extract(Dir(),";",4) + ";" + Extract(Dir(),";",6) it returns
08:43:54
459589_Events.zip;2013-12-20
which is the File Time for the first line, followed by the File Name and File Date for the second line.
Any ideas how to pull just the File Name and File Date for the second line?
161931.zip;435411;2013-12-20;08:43:54
459589_Events.zip;36674;2013-12-20;08:46:02
If I use the $FileDate = Extract(Dir(),";",1) + ";" + Extract(Dir(),";",3) it returns
161931.zip;2013-12-20
which is what I need for the first part of the macro. For the next part of the macro I need to pull the File Name and File Date from the second line, which would be;
459589_Events.zip;2013-12-20.
However if I try using $FileDate = Extract(Dir(),";",5) + ";" + Extract(Dir(),";",7) it returns;
36674;08:46:02
which is the File Size and File Time for the second line.
If I try $FileDate = Extract(Dir(),";",4) + ";" + Extract(Dir(),";",6) it returns
08:43:54
459589_Events.zip;2013-12-20
which is the File Time for the first line, followed by the File Name and File Date for the second line.
Any ideas how to pull just the File Name and File Date for the second line?