However, even though the file to check does not exist, and the no_image file does, the file was not copied.
lcNoImage = (pcGraphicsDir + "no_image.jpg") lcFileToCheck = (pcProductImages + "no_image.jpg") IF !FILE(lcFileToCheck) IF FILE(lcNoImage) COPY FILE (lcNoImage) TO (lcFileToCheck) ENDIF ENDIF
I get the wait window that says "ftc exists". Of course the file is not copied either.
lcNoImage = (pcGraphicsDir + "no_image.jpg") lcFileToCheck = ((pcProductImages) + "no_image.jpg") IF FILE(lcFileToCheck) WAIT WINDOW "ftc exists " + lcFileToCheck && do nothing ELSE WAIT WINDOW "ftc not exist " + lcFileToCheck IF FILE(lcNoImage) WAIT WINDOW "no_image exists " + lcNoImage COPY FILE (lcNoImage) TO (lcFileToCheck) ENDIF ENDIF
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.