Operating System - Linux
1752805 Members
5568 Online
108789 Solutions
New Discussion юеВ

copy file from linux to windows like a batch file

 
Dilip Kumar C M
Occasional Advisor

copy file from linux to windows like a batch file

Usually we are using plink and pscp to run batch file in windows. it will copy file from windows to linux and it will run script or binary there in linux.

for one of my project i need samething which is to copy file from linux to windows and run exe in windows like batch file.....

i cannot use samba because its size is more,

is anybody help me out for this.....

thanking you......
6 REPLIES 6
Ivan Ferreira
Honored Contributor

Re: copy file from linux to windows like a batch file

You could install and SSH server on Windows like cygwin/copssh. Use SCP to transfer the files (slow). You could enable FTP on windows, and transfer the files using ftp.

Use winexe for linux to run remote commands or SSH if you installed cygwin.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
smatador
Honored Contributor

Re: copy file from linux to windows like a batch file

Hi,
I never do it, but it seem that winexe could maybe run exe directly from linux
http://eol.ovh.org/winexe/
You could also search about remote shell on windows from linux "cygwin on windows"
To copy you could use rsync.
Hope it helps
Dilip Kumar C M
Occasional Advisor

Re: copy file from linux to windows like a batch file

Thanks a lot for your reply, i will try with winexe, hope it will works....
Alan_152
Honored Contributor

Re: copy file from linux to windows like a batch file

I've used SCP, SFTP, FTP, and rsync. I can't say that one is any better than another.
Court Campbell
Honored Contributor

Re: copy file from linux to windows like a batch file

Install and setup the openssh port for windows. It has a very small footprint.

http://sshwindows.sourceforge.net/

You will then be able to scp files from linux to windows.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Dilip Kumar C M
Occasional Advisor

Re: copy file from linux to windows like a batch file

Hi All,

winexe will execute command in a remote windows machine-one part is over.

but my requirement is i need to copy file from linux to remote windows machines and then i need to execute those things in that machine.
winexe will execute files and exe which is there in windows machine but i need to copy those things from 1 linux to 100 windows machine at a time, this is my job.

i can't individually install anything in remote windows machines,only thing is from linux only i need to install and run the application.

Anybody has any solution to this problem...???
thanking you.....