Topic "How can I get the localDirectory value from a session?"

Author Message
MarkER

Guest


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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26150
Location: Prague, Czechia
There's the lpwd command:
https://winscp.net/eng/docs/scriptcommand_lpwd
Guest




thanks Martin
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License