Console App interaction

Advertisement

qb
Joined:
Posts:
3

Console App interaction

I must have missed it somewhere...but I am looking for the commands to require user input in a console app.

Something like...
Add files Y or N
or Are you sure you want to exit Y or N...

Thanks for pointing me in the right direction.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,802
Location:
Prague, Czechia

Re: Console App interaction

WinSCP script is not a programming language.

You have to implement your query in a "parent script" (e.g. a batch file) that runs the WinSCP script.

If you need the query between individual WinSCP operations, you will have to create multiple scripts.

Or use WinSCP .NET assembly and drive it from a PowerShell (or any other) script.
https://winscp.net/eng/docs/library_powershell

Reply with quote

Advertisement

You can post new topics in this forum