Miscellaneous Debris > Tech Corner

Batch file help

(1/1)

britbob:
Anyone have a good understand of windows/ms batch files?

I have an old piece of Windows software that has a built in ftp scripting option on a scheduler. Unfortunately it won't work anymore because most hosts provide a secure ftp environment these days which it can't cope with!!

The software does everything I need, it dumps the created images in a folder locally on my c: drive but obviously without ftp working it won't upload them to the host via ftp.

Does anyone know how to write a windows batch file that will ftp all the images (wild card??) in the local folder to a designated folder within my hosting environment.

I can schedule the batch file every hour through windows, thus achieving what the software used to do.

Hope this makes some sense!!!

swright1957:
Hi
Winscp ftp program can schedule ftp uploads to a website host.  So if your batch file loads everything to a folder then Winscp could upload them for you.
Download it and give it a try.

https://winscp.net/eng/docs/guide_schedule

92merc:
I'm also using WinSCP with the linked method. It's worked flawless for me.

britbob:
Thanks guys, and it can capture all the .png's in a folder and upload them such as wild card style?

I'll have a look as the docs and figure out how to write the script/commands to make it happen.

92merc:
Here is my command, with login edited.  I'm sure you could change that to a wild card, although I haven't tested it.

_______________________________________________________

open ftp://cumulusmx%40bismarckweather.net:password@bismarckweather.net/

put C:\CumulusMX\data\dayfile.txt dayfile.txt
# Your command 2

exit

Navigation

[0] Message Index

Go to full version