Topic "Passing a filename in console mode"

Author Message
nhl2k

Guest


I have a visual c++ program that I need to spawn either a batch file or the winscp3 executable, and my program has the name of a the file I need to upload but the problem is its a zip file that's name changes based on date and time. How can I pass the filename to where it will automatically upload this file? I could use a script but I'm not sure how I can pass the script the filename so it knows what to upload. And this has to be automatic with no user intervention which is why I was thinking using a script would be the only way.
Thanks!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
You can regenerate the script file with every upload by your application. Or use /command option and pass the script commands from command-line.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License