[HELP][EASY]Existing files[SOLVED]
uhm i need the code
FolderBrowserDialog1.SelectedPath & "\Filename" doesn't exist, then my application ends
if io.file.exists(folderbrowserdialog1.selectedpath & "\Filename.we") then
'we
end if
don't forget the extension btw
i mean doesn't exist, or does your code mean doesn't exist
It only continues if the file actually exists, prevents closing.
you mean if it DOESN"T EXIST then application ends
no. if it doesn't exist, it does nothing at all.
Here's the code you want:
if io.file.exists(folderbrowserdialog1.selectedpath & "\Filename.we") then
'we
else
application.exit
end if
Marked solved, don't post if older than 7 days, unless completely necessary.