You can try this:
The workspace will: open a specific tabfile, export it a a csv
file and then exit MapInfo
exportTab.wor:
==========================
!Workspace
!Version 600
!Charset WindowsLatin1
Dim tabFile as string
Dim csvFile as string
' Change the 2 lines to the right tab/csv filepath
tabFile = "c:\dummy\tabFileToExport.tab"
csvFile = "c:\dummy\newCsvFile.csv"
Open Table tabFile as temp
'Use this line if you want column titles
Export temp Into csvFile Type "ASCII" Delimiter "," CharSet
"WindowsLatin1" Titles OverWrite
' Remove "Titles" part if you don't want column titles
' If you want another delimited than "," change the "," to ex. ";"
'Export temp Into csvFile Type "ASCII" Delimiter ";" CharSet
"WindowsLatin1" OverWrite
Close Table temp
unDim tabFile
unDim csvFile
End MapInfo
============================
- Paste the text between the "====="'s into a textfile called
exportTab.wor.
- Change the variables tabFile and csvFile to the correct
values
- Doubleclick the exportTab.wor to check if it works.
- In a dos prompt write the following command (It worked when
I was using NT 4.0 !! - there is probably a better method
available) :
c:\> at 01:00 /interactive /every:M,T,W,Th,F
c:\dummy\exportTab.Wor
The command wil instruct the windows scheduler to execute
"c:\dummy\exportTab.Wor" every workday mon-fri at 01:00 AM.
Regards
Bo Victor Thomsen
Aestas-GIS
Denmark