Post a reply

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

Guest

thanks Martin
MarkER

How can I get the localDirectory value from a session?

Hi,

I have a DOS script that issues the following command :

winscp.com /command "open sftp://%environment%" "option confirm off" "put %objectname%" "exit" >> compileOut.txt

The DOS %environment% variable maps to a WinScp session that has been pre-configured in the users WinScp.ini file. They can have many pre-configured sessions, they choose one.

I would like to display a message in the DOS console to the user that says "Transferring localDirectory\objectname"

Is there any way to retrieve the localDirectory value from the chosen session so that I can display it?

Thanks

Mark