You can regenerate the script file with every upload by your application. Or use /command option and pass the script commands from command-line.
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.