Topic "Passing a filename in console mode"

Author Message


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.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
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

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License