F fernando.oliboni Active Member Licensed User Longtime User May 24, 2021 #1 Why can't I find the file that I know is in the folder? What's wrong with my routine? Code: Copy If File.Exists("application/octet-stream", "PetCNC.txt") Then Log(File.Delete("application/octet-stream","PetCNC.txt")) File.Delete ("application/octet-stream", "PetCNC.txt") Else Log(File.Delete("application/octet-stream","PetCNC.txt")) End If
Why can't I find the file that I know is in the folder? What's wrong with my routine? Code: Copy If File.Exists("application/octet-stream", "PetCNC.txt") Then Log(File.Delete("application/octet-stream","PetCNC.txt")) File.Delete ("application/octet-stream", "PetCNC.txt") Else Log(File.Delete("application/octet-stream","PetCNC.txt")) End If
agraham Expert Licensed User Longtime User May 24, 2021 #2 Code: Copy Log(File.Delete("application/octet-stream","PetCNC.txt")) File.Delete ("application/octet-stream", "PetCNC.txt") You are deleting the file once in the Log statement and then trying to delete it again afterwards Upvote 0
Code: Copy Log(File.Delete("application/octet-stream","PetCNC.txt")) File.Delete ("application/octet-stream", "PetCNC.txt") You are deleting the file once in the Log statement and then trying to delete it again afterwards
Erel B4X founder Staff member Licensed User Longtime User May 25, 2021 #3 There is no such folder. Upvote 0