How can I build an Auto Uploader which always upload a CSV file. They have totally different names. I would like to upload just the latest CSV File.

Is there a way to upload it just by using their filetype if only one file of the type exists?

有帮助吗?

解决方案

you could use a batch like this if you want to get the newest csv file :

@echo off
for /f "tokens=*" %%i in ('dir c:\temp\*.csv /B /O:-D') do call:test %%i

:test
echo uploading %1
goto eof

:eof
rem pause to see the execution
pause 
exit
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top