문제

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