1
HFS ~ HTTP File Server / ็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
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