twofingers Guru Joined: 02/06/2014 Location: GermanyPosts: 1546
Posted: 12:30pm 08 Jan 2023
@Peter
I think I found a small bug regarding MM.Info(FILESIZE file$). I wanted to use it to determine whether a file exists.
From manual:
I would expect a return of -1 for a nonexistent file, but I get:
Error : Could not find the file
I know I could deal with "on error skip" and "mm.errno".
I also know that there are two other ways to determine if a file_exists.
MM.Info(MODIFIED fb$)=""
and
On Error Skip Open "file.txt" For Input As #1 If MM.ErrNo <> 0 Then ...
Best regards Michael
EDIT: I was surprised! Question regarding the copy command: Is it a desired behavior that files with the same name are not automatically overwritten/replaced, but have to be deleted first? Edited 2023-01-08 23:09 by twofingers