rejetto forum

็HFS ? Can I download HTTP in with batch file

0 Members and 1 Guest are viewing this topic.

Offline kobzoom

  • Occasional poster
  • *
    • Posts: 1
    • View Profile
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 :-\


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 842
  • Status: On hiatus (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
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 ...or try this (using VBScript).
« Last Edit: August 25, 2016, 02:03:36 PM by LeoNeeson »
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 910
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
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...
Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 910
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
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
Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 842
  • Status: On hiatus (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
@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" 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
« Last Edit: August 27, 2016, 05:32:25 AM by LeoNeeson »
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 910
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
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....
Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 842
  • Status: On hiatus (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
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...
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.