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

martin

Re: is there any way to copy files from windows to linux using command line.

Ravindranadh wrote:

From Linux machine i want to copy windows files. Can some one please help me to get command line process.

The easiest is to have WinSCP generate the script for you:
https://winscp.net/eng/docs/ui_generateurl#script
Ravindranadh

is there any way to copy files from windows to linux using command line.

From Linux machine i want to copy windows files. Can some one please help me to get command line process.
martin

Re: file transfer using command mode from windows to unix(putty)

RakeshRaushan wrote:

Hi,I want to transfer files from my windows folder to unix server(using putty). Currently I am using WINSCP GUI but i want to use commands instead of using GUI. Please suggest if any way is there.

Start here:
https://winscp.net/eng/docs/guide_automation

Or have WinSCP generate the script for you:
https://winscp.net/eng/docs/ui_generateurl
(available in the latest beta version only)
RakeshRaushan

file transfer using command mode from windows to unix(putty)

Hi,I want to transfer files from my windows folder to unix server(using putty). Currently I am using WINSCP GUI but i want to use commands instead of using GUI. Please suggest if any way is there.
martin

Re: Copy a file from a Windows command line

Peyotito

Re: Copy a file from a Windows command line

I mean in Username and/or password.

i.e. if I use a / in my password it cuts it off
Peyotito

Re: Copy a file from a Windows command line

martin

Re: Copy a file from a Windows command line

guest wrote:

I tried to use winscp.com in command line, it showed the following error msg: -
'winscp.com' is not recognized as an internal or external command, operable program or batch

You have to run the command from folder, where winscp.com is located. Or ensure that winscp.com is in search path.
guest

Re: Copy a file from a Windows command line

martin wrote:

If you want to automate the transfer, use scripting functionality:
winscp.com root:password@10.0.0.15 /command "put d:/esxupdates/updates /home/scripts/updates/"


I tried to use winscp.com in command line, it showed the following error msg: -
'winscp.com' is not recognized as an internal or external command, operable program or batch
martin

Re: Copy a file from a Windows command line

For automation please read FAQ.
martin

Re: Copy a file from a Windows command line

brianpaul wrote:

That works very well, but it prompts me if I want to overwrite the file. Is there a switch that can be used that would allow the command to overwrite without prompting? Also, is there a switch or someway to have it close the session when the command is completed?

option confirm off
exit
Please read documentation.
brianpaul

Re: Copy a file from a Windows command line

That works very well, but it prompts me if I want to overwrite the file. Is there a switch that can be used that would allow the command to overwrite without prompting? Also, is there a switch or someway to have it close the session when the command is completed?
martin

Re: Copy a file from a Windows command line

If you want to automate the transfer, use scripting functionality:
winscp.com root:password@10.0.0.15 /command "put d:/esxupdates/updates /home/scripts/updates/"
Guest

My friend Sebastian says that you can't do that on the command line.
brianpaul

Copy a file from a Windows command line

I would like to copy a file from a Windows machine to a Linux machine(10.0.0.5). I thought maybe this would be a way I could do it...
winscp.com root:password@10.0.0.15 /synchronize d:/esxupdates/updates /home/scripts/updates

I also tried this...
winscp.com root:password@10.0.0.15 /synchronize d:/esxupdates/updates /home/scripts/updates /defaults

If /upload would work for my purpose, then that would be even better. I can copy the file by opening up a connection with the Linux server and then entering in the commands, but I would like one command-line statement to do this so I can put it into a VB program.
Thanks!