1.

Solve : Error/File already Exists?

Answer»

Hello, I recently had to pay a company 1000.00 for 1 hour consultation to fix a problem I had with ONE of my programs. They were able to fix the problem but the problem is it is now suppose to be a totally automated hands free operation which runs every morning around 7:45. The entire process does work but only if Im at the computer or remotely logged in to "PRESS any key to continue" 3 or 4 times to finish the process. I ran out of time on the consultation Im not a DOS person and do not have time to really teach myself. In any case I RECEIVE a file daily and it has to go through a "prebatch" and then a "postbatch" process. here is what Im ACTUALLY seeing:





Number =355

A subdirectory or file C:\Edgp already exists
A subdirectory or file C:\Edge\in already exists
A subdirectory or file C:\Edge\out already exists
A subdirectory or file C:\EDIIMPTS already exists
A subdirectory or file C:\BACKUP.EDI already exists
A subdirectory or file D:\BACKUP.EDI\EDI-IMPT already exists
A subdirectory or file D:\BACKUP.EDI\EDI-RECV already exists
A subdirectory or file D:\BACKUP.EDI\EDI-SEND already exists
A subdirectory or file D:\BACKUP.EDI\INBOUND already exists
A subdirectory or file D:\BACKUP.EDI\OUTBOUND already exists

ERROR: File impt355.edi already exists--
Edit C:\Edge\EX_P\Setlast to the last sequence # used plus 1 and try again

basically this error appears for each one of the subdirectory's and I can hit any key
to continue and it will finally finish the job but really would like to fix this somehow.Quote

<Prebatch>
<Setlast>
<Setlast>

Number =355

A subdirectory or file C:\Edgp already exists
A subdirectory or file C:\Edge\in already exists
A subdirectory or file C:\Edge\out already exists
A subdirectory or file C:\EDIIMPTS already exists
A subdirectory or file C:\BACKUP.EDI already exists
A subdirectory or file D:\BACKUP.EDI\EDI-IMPT already exists
A subdirectory or file D:\BACKUP.EDI\EDI-RECV already exists
A subdirectory or file D:\BACKUP.EDI\EDI-SEND already exists
A subdirectory or file D:\BACKUP.EDI\INBOUND already exists
A subdirectory or file D:\BACKUP.EDI\OUTBOUND already exists
<SETBANK FIRST D:\backup.edi\batch.log

ERROR: File impt355.edi already exists--
Edit C:\Edge\EX_P\Setlast to the last sequence # used plus 1 and try again

Is this output being generated by a batch file or some home-grown program? If it's from a batch file, please post the code; if it's from a program a forum may not be your best bet for a solution.

8-)


Discussion

No Comment Found