rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: kobzoom on August 25, 2016, 09:39:52 AM
-
I am trying to download a file from a URL ,using batch file
I write the function below:
1.Call copy.bat
-------------------------------
echo on
for /f %%a in (IP.txt) do (
echo
C:\psexec.exe "\\%%a" -u test\test -p 1234 cmd /c "\\192.168.2.100\Script\Copy.bat %%a"
-----------------------------------------------------------------------------------
2.Copy.bat
echo on
bitsadmin.exe /transfer "test" http://192.168.2.100:9001/program/test.7z C:\test\test.7z (Not work)
or
start http://192.168.2.100:9001/program/test.7z >>c:test.7z (incorrect)
exit
-------------------------------------------------------------------------------------------
PLS Tell me solution :-\
-
Please copy here the error you get. And it would be great to know your Windows version too. I guess you've configured your firewall to allow the connection.
In the meantime, you may try сurl (http://goo.gl/Zx2duq) ...or try this (http://semitwist.com/articles/article/view/downloading-files-from-plain-batch-with-zero-dependencies) (using VBScript). (http://stackoverflow.com/a/16788614)
-
Error 403: Forbidden
Your PHP settings have been disabled by an H-Sphere administrator.
Your current PHP configuration:
-->
This configuration was changed:
Please bring your PHP configuration in compliance with admin settings or request your administrator to re-enable support of your settings.
You don't have permissions to access this page. This usually means one of the following:
this file and directory permissions make them unavailable from the Internet.
.htaccess contains instructions that prevent public access to this file or directory.
Please check file and directory permissions and .htaccess configuration if you are able to do this. Otherwise, request your webmaster to grant you access.
looks like i can't post web links anymore...
-
your power shell script looks fine, double check power shell security
also look into gnu w get
i'd post links but i can't for some reason :p
-
@bmartino1: It's not about posting links. Try to write any message here with the word "сurl" (do not copy and paste, just type it manually) and you will get that error when you try to post it or preview it. I think Rejetto banned the word "сurl" or somehow that word is crashing the forum (giving the error you posted). I'm using a shady "trick" to write that word (using a so called Cyrillic "Homoglyphic" (https://en.wikipedia.org/wiki/Homoglyph#Unicode_homoglyphs) character), changing only the "c" of "сurl". It's really weird. And if that word is contained in a link, the forum gives that error too (that's why I was forced to use a short link generator).
It took me almost half an hour to find the word causing this error... :P
-
i did test before, it actual hsphere securty, and it bans certain linux comands.... such as "w get" as it would run on the server....
-
i did test before, it actual hsphere securty, and it bans certain linux comands.... such as "w get" as it would run on the server....
Yeah, it must be that...