How to set environmnet variables using winscp scripting

Advertisement

Sowmya
Joined:
Posts:
10
Location:
Bangalore

How to set environmnet variables using winscp scripting

Hi,

I using the winscp scripting feature in vb.net to tranfer files back and forth from windows to Linux. (RHEL 4) . I need to dynamically define the environment variables on linux uisng the winscp scripting feature.
Here is what i tried.

open server
username:
password :
put "%Ef_USER%"="abcde"

i get an error msg as "no command exist.
Could you please help me in defining teh name value pair using winscp scripting feature.

For Eg: I want to set ITERLIMIT=100
export ITERLIMIT.

Your immediate help on thsi would be highly appreciated.
Thanks
Som

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,567
Location:
Prague, Czechia

Re: How to set environmnet variables using winscp scripting

What do you hope to achieve by setting the variable?
Anyway, you can do this using call command. But it may not be effective depending what the setting of variable should do.

Reply with quote

Guest

Thanks Sir,

I could set the user defined environmnet variable using teh call command.
WINSCP is an excellent tool.
I amactually using the winscp scripting feature in vb.net to submit a job to a cluster.

Thanks a lot for your help on this.


:)

Reply with quote

Advertisement

You can post new topics in this forum