WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   pobleme mit xcopy (http://www.wcm.at/forum/showthread.php?t=120526)

catch17 01.01.2004 12:35

pobleme mit xcopy
 
hallo leute,

zuerst mal ein gutes neues jahr:) :)

bin gerade ein biz am batch schreiben (für win_me)und da macht mir xcopy32 mucken. der schalter /i (xcopy legt ziel als verzeichnis an wenn ziel nicht vorhanden) funkt nicht :( xcopy nimmt verzeichniss als datei - d.h. wenn ich ordner mit 100 dateien kopiere erhalte ich eine (endungslose) datei mit ein paar kbyte:mad: :mad:

"lustigerweise" funktioniert der idente xcopy befehl (mit gleichen schaltern!!) auf dem selben rechner in einer anderen *.bat datei genau so wie er soll:confused: :confused: :confused:

weiß wer rat bzw. woran könnte das liegen

lg,

Who-T 02.01.2004 04:42

sowas is normalerweise ein vergessenes leerzeichen, strichpunkt oder sowas ähnliches

post mal beide dateien

catch17 05.01.2004 01:04

also -s hat ein biz gedauert aber hier die betrefenden abschnitte:

hier funkts noch:
xcopy/d/y/q/h/r/i config.sys f:\backup
xcopy/d/y/q/h/r/i eeeee.NET f:\backup
xcopy/d/y/q/h/r/i wwww.BAT f:\backup
xcopy/d/y/e/q/h/r/i wwww f:\backup\wwww
xcopy/d/y/e/q/h/r/i ssssf:\backup\ssss
xcopy/d/y/e/q/h/r/i yyy f:\backup\yyy
xcopy/d/y/e/q/h/r/i xxx f:\backup\xxx


und hier nichtmehr - liegts am errorlevel?(muß wohl), den hab ich von dos-tutorial von einer dos-site
xcopy/d/y/q/h/r/i config.sys d:\d_save\backup
if not errorlevel=0 goto error
xcopy/d/y/q/h/r/i rrrrr.NET d:\d_save\backup
if not errorlevel=0 goto error
xcopy/d/y/q/h/r/i wwww.BAT d:\d_save\backup
if not errorlevel=0 goto error
xcopy/d/y/q/h/r/i aaa d:\d_save\backup\aaa
if not errorlevel=0 goto error
xcopy/d/y/q/h/r/i ssss d:\d_save\backup\ssss
if not errorlevel=0 goto error
xcopy/d/y/q/h/r/i fff d:\d_save\backup\fff
if not errorlevel=0 goto error
xcopy/d/y/q/h/r/i yyy d:\d_save\backup\yyy
if not errorlevel=0 goto error
xcopy/d/y/q/h/r/i xxx d:\d_save\backup\xxx
if not errorlevel=0 goto error

wird wohl des mit errorlevel sein - doch wie geht des dann richtig?

flinx 05.01.2004 11:35

if not %errorlevel%==0 goto error

catch17 05.01.2004 11:53

soweit ich weiß gibts unter win_me/98 die "%" nicht(hat auch fehlermeldung verursacht) - beim "==" bin ich mir nicht sicher

lg,

flinx 05.01.2004 12:10

Zschnell glesen, sorry. :(
Versuch:
if not errorlevel 0 goto error

catch17 05.01.2004 12:22

ja werd ich machen - am nachmittag/abend bekomm ich den rechner wieder...

lg,


Alle Zeitangaben in WEZ +2. Es ist jetzt 04:12 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag