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:
- enabled apache2 service on linux
- copied exe file /var/www
on windows:
- opened powershell session
executed
(new-object system.net.webclient).downloadfile("http:// ipadd /file.exe","file.exe")
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
Post a Comment