Author Topic: ็HFS ? Can I download HTTP in with batch file  (Read 1449 times)

0 Members and 1 Guest are viewing this topic.

Offline kobzoom

  • Occasional poster
  • *
  • Posts: 1
    • View Profile
็HFS ? Can I download HTTP in with batch file
« 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 :-\

Offline LeoNeeson

  • Tireless poster
  • ****
  • Posts: 620
  • Still busy...
    • View Profile
    • twitter.com/LeoNeeson
Re: ็HFS ? Can I download HTTP in with batch file
« Reply #1 on: August 25, 2016, 01:35:56 PM »
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)
» All my work/posts/data anywhere on internet is on Public License!

Offline bmartino1

  • Tireless poster
  • ****
  • Posts: 893
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
Re: ็HFS ? Can I download HTTP in with batch file
« Reply #2 on: August 27, 2016, 12:22:08 AM »
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 try to keep and share can be found on my google drive:

https://drive.google.com/drive/folders/1FOWi3Gqaldld6JLXvZ-biDv4RSguf0IC

Offline bmartino1

  • Tireless poster
  • ****
  • Posts: 893
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
Re: ็HFS ? Can I download HTTP in with batch file
« Reply #3 on: August 27, 2016, 12:23:54 AM »
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 try to keep and share can be found on my google drive:

https://drive.google.com/drive/folders/1FOWi3Gqaldld6JLXvZ-biDv4RSguf0IC

Offline LeoNeeson

  • Tireless poster
  • ****
  • Posts: 620
  • Still busy...
    • View Profile
    • twitter.com/LeoNeeson
Re: ็HFS ? Can I download HTTP in with batch file
« Reply #4 on: August 27, 2016, 05:28:39 AM »
@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)
» All my work/posts/data anywhere on internet is on Public License!

Offline bmartino1

  • Tireless poster
  • ****
  • Posts: 893
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
Re: ็HFS ? Can I download HTTP in with batch file
« Reply #5 on: August 28, 2016, 03:33:14 PM »
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 try to keep and share can be found on my google drive:

https://drive.google.com/drive/folders/1FOWi3Gqaldld6JLXvZ-biDv4RSguf0IC

Offline LeoNeeson

  • Tireless poster
  • ****
  • Posts: 620
  • Still busy...
    • View Profile
    • twitter.com/LeoNeeson
Re: ็HFS ? Can I download HTTP in with batch file
« Reply #6 on: August 29, 2016, 03:29:03 AM »
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)
» All my work/posts/data anywhere on internet is on Public License!