ExecuteCommand in a specific directory

Advertisement

Thierry59
Joined:
Posts:
2
Location:
Lille, France

ExecuteCommand in a specific directory

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,252
Location:
Prague, Czechia

Re: ExecuteCommand in a specific directory

Use "cd /fullpath ; ./toto.sh filename"
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum