Topic "client scripting"

Author Message
[View user's profile]

Joined: 2006-09-20
Posts: 2
I've been asked to help a faculty member find a solution to the attached question. I'm not at all familiar with what he's trying to do but in doing some prelimiary research I believe WinSCP is a possible solution. Can someone confirm that based on his question, which follows?

Thanks to all.

want a client - let's call it xxFtp which can be run like:

xxFtp -c script.ftp

where script.ftp is some text file with ftp commands in it maybe like (I am making this up):

errlog c:\webstuff\upload\logs
user xxxxx
password mybigsecret
cd core1
cd docs
cd csci/xxxxx
cd apps
local cd c:\webstuff\apps
for each fle in *.gif
x = remotetime $fle
if x < time $fle
then put $fle
end for


Kind of like a mini-bash for managing an ftp connection.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
Attempt to translate your pseudo-code into WinSCP script:

winscp /console /script=script.ftp /log=c:\webstuff\upload\logs

cd core1
cd docs
cd csci/xxxxx
cd apps
lcd c:\webstuff\apps
option include *.gif
synchronize remote

Martin Prikryl
[View user's profile]

Joined: 2006-09-20
Posts: 2
I'll forward it to the faculty memeber.

Thanks Again.

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License