Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Passing a filename in console mode

You can regenerate the script file with every upload by your application. Or use /command option and pass the script commands from command-line.
nhl2k

Passing a filename in console mode

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!