Message board for the users of flat assembler.
> DOS > Copying files
Hey there! I need to write a program to copy all the files in a network shared folder to a local folder. The purpose is to have a backup of photos created from a webcam hooked to a laptop(in case its stolen or destroyed). Is this possible with DOS interrupts? Is there a copy procedure in winFasm?(I've been learning from 16 bit asm so far)
I'm considering using dos interrupts to:
open file(in network shared folder)
loop until eof
write word to buffer
create new file(in local folder)
write buffer to file
Is there a better way to go about this or am I on the right track? thx much
|25 Dec 2010, 02:15||
> copy all the files in a network shared folder
Your OS and network program ?
> possible with DOS interrupts? Is there a copy procedure in winFasm?
Are you in the right subforum ?
> Is there a better way to go about this or am I on the right track?
If you are using Windows, use WinAPI
If in DOS, open both files, and loop with copying
(max $FFFF, better $F000 Byte's per pass).
If copying to same physical disk, you might
want to prefer a bigger buffer (maybe 360 KiB
of low memory or some XMS), still, you will
need multiple reads and writes to fill it.
|25 Dec 2010, 05:47||
Use a batch file.
|25 Dec 2010, 06:50||
Thx, I'm gonna take a look at the WinAPI. Short term XCOPY in a .bat is working for me.
|27 Dec 2010, 03:31||
< Last Thread | Next Thread >
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.