W
WembleyBear
Hi
I'm fairly new to this & I've read a couple of similar posts but they don't
seem to answer my question fully. I am importing a csv file (c:\nlexp.csv)
from our Dealer Management system on a daily basis, however, if the export
from DMS is run more than once in the day, the exported file is renamed by
the DMS (c:\18nlexp.csv).
Before the file is imported, I need to:
1) Check if the file "C:\18nlexp.csv" exists. If it doesn't, then do nothing.
2) If it does exist, and the date on the file <> today, do nothing.
2) If it does exist, and the date on the file = today, then rename the file
to "C:\nlexp.csv" and continue with the import
I fine with renaming the file & the import, it's the checks I'm having a
problem with. Any help would be appreciated.
Many thanks
Martyn
Excel 2000, Windows Server 2003 over Citrix PS4
I'm fairly new to this & I've read a couple of similar posts but they don't
seem to answer my question fully. I am importing a csv file (c:\nlexp.csv)
from our Dealer Management system on a daily basis, however, if the export
from DMS is run more than once in the day, the exported file is renamed by
the DMS (c:\18nlexp.csv).
Before the file is imported, I need to:
1) Check if the file "C:\18nlexp.csv" exists. If it doesn't, then do nothing.
2) If it does exist, and the date on the file <> today, do nothing.
2) If it does exist, and the date on the file = today, then rename the file
to "C:\nlexp.csv" and continue with the import
I fine with renaming the file & the import, it's the checks I'm having a
problem with. Any help would be appreciated.
Many thanks
Martyn
Excel 2000, Windows Server 2003 over Citrix PS4