Passing a filename in console mode

Advertisement

nhl2k
Guest

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!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum