Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

InGearX

Wow thanks mate!
martin

Re: passing password in command line?

InGearX wrote:

1) Is there any way for me to actually pass the password?

I do not see a problem with your password. Anyway, you can URL-encode any character that you think causes a problem. Also you can setup a stored session in advance and open it instead of using URL.

2) Also any idea how I can also force a change of a local directory?

Again, setup stored session in advance.
InGearX

passing password in command line?

I have the following batch.bat file:

start winscp380.exe sftp://user51:12#$56&*@wwwstage.nydc.site2.prv:22/usr/local/www/staging/


And as you might imagine the password fails to pass :'(

I tried using variables in batch but it fails
set pass="12#$56"

start winscp380.exe sftp://user51:%pass%@wwwstage.nydc.site2.prv:22/usr/local/www/staging/


1) Is there any way for me to actually pass the password?

2) Also any idea how I can also force a change of a local directory?

Any tips, tricks, links, suggestions are much appreciated ;)

Thank you all...