How to embedded a script into a program-code

Advertisement

guest
Guest

How to embedded a script into a program-code

Hello,
I want to use WinSCP in a self-written scheduler but I didn't find any hints how to do it.
I have a txt-File with all command's (we assume, the command's are correct), but how I make the connction between my programm and the script-file.
When I work with the command-line-Box from windows, it is no problem to start WinSCP with the console-Parameter, but then I get a new box. In this box I can write the command's and this works.
How looks a complete batch-command, which assign my txt-file to WinSCP and execute this?

Thanks for help
Martin

Reply with quote

guest
Guest

Sorry,
but afer I look into the documentaion again, I found the right hint:
winscp.exe /console /script=example.txt
Martin

Reply with quote

Advertisement

You can post new topics in this forum