You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
- shell "copy "a:\kasarc.arc c:\refo\kasarc.arc"
- sometimes files will not appear onto Disk; but the disk is ok
If your SHELL statement is the one in the code (
Code:
shell "copy "+lauf$+dati$+" "+lw$+dati$+" >nul"
) then you aren't seeing possible COPY error messages because of the ">nul", so are you sure anyway that COPY isn't giving an error or asking for overwrite confirmation ?
anzeige "Sicherung Punktdatei "+ld$
shell "pkarc -u "+lauf$+dati$+" "+ld$+" >nul"
'check packed file
if tesarc%(lauf$+dati$) then
anzeige "arc ok "+dati$
else
fehler "Festplatte ? -bea-dis.bas"
anzeige "Festplatte ? -bea-dis.bas"
sleep:nix$=inkey$
exit loop
end if
'xfer123.arc wird auf Lw$ kopiert !!!!
'hier gibt's fehler probiere es mit xcopy
if copyfile(lauf$+dati$,lw$+dati$) = -1 then
'shell "copy "+lauf$+dati$+" "+lw$+dati$+" >nul"
'shell "copy "+lauf$+dati$+" "+vkdat$+" /V >nul"
if tesarc%(lW$+dati$) then
name lauf$+"ewjou.dat" as lauf$+"ewjou."+zaehl$("",999,0)
'if dir$(lauf$+"neu_ean.txt")<>"" then
'kill lauf$+"neu_ean.txt"
'end if
anzeige dati$+" auf Laufwerk "+lw$+" kopiert"
else
fehler "keine Daten auf "+lw$+dati$
name lauf$+dati$ as lauf$+"xxxx."+zaehl$("",999,0)
'benenne sicherung um auf xxxx.999
sleep:nix$=inkey$
exit loop
end if
anzeige "Datendiskette erfolgreich erstellt "+zahl
sleep:nix$=inkey$
else
'error on copy sometimes
fehler "Fehler beim Copieren von "+lw$+dati$
end if
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: