[Gambas-user] Problem with file access

Dag JNJ gambas at cd-bahia.com
Thu May 18 00:09:45 CEST 2023


Hi all,
suddenly I have got access denied handling files. In a terminal window 
everything works fine, but from within Gambas I get access denied. I have
/If Exist(dPDF) Then Kill dPDF -> IDE stopps  with access denied message
/dPDF is the filename of a pdf-file. It worked fine until the afternoon 
today. I tried chmod -r +rw . and chown -r dagj . from the current 
Application.Path, but that changed nothing, Then I tried
/Shell "pdftotext  -layout " & ch3 & dPDF & ch3 & " " & fntxt Wait
/fntxt is the filename of the output textfile. Result:
/I/O Error: Couldn't open file 'data/AMZ/2020/Amazon.es - Pedido 
406-4690641-7441902.pdf': No such file or directory.
/
But when//I try this in a terminal window (Print instead of Shell and 
copy the result from the Gambas console then paste this into the 
terminal window), it works,
/pdftotext  -layout "data/AMZ/2020/Amazon.es - Pedido 
406-4690641-7441902.pdf" "data/AMZ/BEARBEITET/TXT/406-4690641-7441902.txt"/

I am hanging a little  now, and appreciate any help.
Regards,
Dag
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230518/f8b3aa88/attachment-0001.htm>


More information about the User mailing list