|
Post by angelo2449 on Jul 4, 2023 14:18:21 GMT -5
Hi guys,
I have a problem with this code:
filedialog "Open - Apri", "C:\AutocadSupporto\SerrAll\Libretto\*.dat", FileDaVedere$
if FileDaVedere$ = "" then wait
Run "Notepad " + "FileDaVedere$"
end
I get error, the file does not exist.
Thank you.
|
|
|
Post by Rod on Jul 4, 2023 14:31:34 GMT -5
As with all these cases print the return value first rather than use it to open. File. That way you can see the errors or spaces in the file path.
|
|
|
Post by tsh73 on Jul 4, 2023 15:37:41 GMT -5
It looks like
Run "Notepad " + "FileDaVedere$" should be
Run "Notepad " + FileDaVedere$
|
|
|
Post by angelo2449 on Jul 6, 2023 3:05:29 GMT -5
Thank you, I did a stupid thing!
Sometimes, even if I read it 1000 times, I wouldn't find the mistake!
|
|