Topic "ExecuteCommand in a specific directory"

Author Message
Thierry59
[View user's profile]

Joined: 2014-09-08
Posts: 2
Location: Lille, France
Hello All,

this is my first post.
I'm using WinScp (5.5.5 version) via .net (visual studio 2008)

I'd like to execute a command but I need to be in a specific directory.

Example :
I'd like to launch the command ./toto.sh filename

and I can not use the command /fullpath/toto.sh /path/filename

Would you have any idea ? I do not see anything in the sessionOptions that could help me.

Thierry
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25025
Location: Prague, Czechia
Use "cd /fullpath ; ./toto.sh filename"
_________________
Martin Prikryl
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