Re: how to cp file from windows to laptop
On Thu, Jan 12, 2012 at 01:04:29PM +0800, lina wrote:
> I use Terminal Server Client to connect to Windows,
> there I only found command prompt and the Windows power shell (x86),
> I tried the scp, wincp, it complained that the scp is not recognized.
> are there some easy way to cp file from Windows to linux?
> better use system default tools. I don't have root privilege in the
Have a look at
http://www.leeholmes.com/blog/2009/10/28/scripting-network-tcp-connections-in-powershell/ and http://halr9000.com/article/397
What you want to do is set up netcat on your linux box:
$ netcat -l -p 12345 > somefile
Then, using the code above, write a powershell script that sends your
file to the remote machine on port 12345.
Alternatively, Powershell can do FTP/Mail etc itself, too.