Topic "How to set environmnet variables using winscp scripting"

Author Message
Sowmya
[View user's profile]

Joined: 2010-08-03
Posts: 10
Location: Bangalore
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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
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.
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.


Smile
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