In order to transfer several files of unknown size from drive C: of a PC to a network drive N:, I am using the following instruction.
SHELL "COPY C:\Line01\??????M2.TXT N:\LINE01"
As such, this works fine.
However, if during the execution of this instruction the network goes down, DOS generates the following message:
Not ready reading drive N:
Abort, Retry, Fail?
Then the program just sits there and waits for a keyboard input before returning to basic.
The PC in question is unsupervised and does NOT have a display or keyboard attached.
This means that there is NO manual way to continue, except for rebooting the PC.
I do not care if the files actually got transferred or not, since I can check and handle this once back in basic.
I am trying to find a way to exit the DOS shell or a way to continue on.
Or any alternate way to accomplish the above file transfer.
Transfer time is also a criteria, since reading in files one at a time and character by character and then writing them takes considerable more time then the above DOS command.
Would appreciate any solutions, comments and suggestions.
Helmut Bayer
------------------
SHELL "COPY C:\Line01\??????M2.TXT N:\LINE01"
As such, this works fine.
However, if during the execution of this instruction the network goes down, DOS generates the following message:
Not ready reading drive N:
Abort, Retry, Fail?
Then the program just sits there and waits for a keyboard input before returning to basic.
The PC in question is unsupervised and does NOT have a display or keyboard attached.
This means that there is NO manual way to continue, except for rebooting the PC.
I do not care if the files actually got transferred or not, since I can check and handle this once back in basic.
I am trying to find a way to exit the DOS shell or a way to continue on.
Or any alternate way to accomplish the above file transfer.
Transfer time is also a criteria, since reading in files one at a time and character by character and then writing them takes considerable more time then the above DOS command.
Would appreciate any solutions, comments and suggestions.
Helmut Bayer
------------------
Comment