apache - Error copying binary file from Linux VM to Windows VM using PowerShell -


i'm unable determine reason problem have copying binary files linux vm windows vm.

steps performed:

on linux:

  1. enabled apache2 service on linux
  2. copied exe file /var/www

on windows:

  1. opened powershell session
  2. executed (new-object system.net.webclient).downloadfile("http:// ipadd /file.exe","file.exe")

  3. i receive following error:

exception calling "downloadfile" "2" argument(s): " remote server returned error: (404) not found." @ line:1 char:47

+ (new-object system.net.webclient).downloadfile <<<<

("http://< ipadd >/file.exe","file.exe")

+ categoryinfo : notspecified: (:) [], methodinvocationexception

+ fullyqualifiederrorid : dotnetmethodexception

the command simple , works fine if copied file ascii file gives error binary file.

i didn't find difference copying text or executable files in powershell.

is there mistake here?


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -