Local download per CMD/batch frage

07/24/2013 09:41 StiflersM0M#1
Hallo :D
also meine frage ist ganz simple trotzdem finde ich bei google keine passende antwort :(
hier mal das Szenario:
Ich habe 2 Computer per Netzwerk mit einander verbunden.
jetzt will ich mit der command line eine datei von einen freigegeben Netzwerk ordner von denn einen pc downloaden, möglichst würde ich vorher auch gerne festlegen wo die datei geschrieben werden soll.
wäre echt klasse wenn mir einer helfen könnte.
(Per IE laden habe ich schon probiert, es geht auch aber würde halt gerne festlegen wo die datei dann hin soll)

Mfg
07/29/2013 18:08 RGrand#2
Code:
@echo off
echo Pick 1,2 or 3
echo 1) Manual Copy
echo 2) Hybrid Copy
echo 3) Automatic Copy
set /p input= Choose: 

if %input% == 1 goto manual
if %input% == 2 goto hybrid
if %input% == 3 goto auto

:manual
set /p inputfrom= Full path of your origin file:
set /p inputto= Full path of your destination folder:
xcopy /s %inputfrom% %inputto%
pause
exit

:hybrid
set inputfrom=Z:\file.example
set /p inputto= Full path of your destination folder:
xcopy /s %inputfrom% %inputto%
pause
exit

:auto
set inputfrom=Z:\file.example
set inputto=C:\path.example\
xcopy /s %inputfrom% %inputto%
pause
exit
Sollte funktionieren.
~RGrand