It is currently 21 April 2025, 18:58 Advanced search

Path statements?

Questions and answers on how to best use Instant Developer

Path statements?

Postby john w » 19 January 2024, 17:25

A question about InDe path statements. I get this debug error message when running a Delete script. The script works in the IDE and in running the app there, but not when deployed.

MainFrm.Delete Temp Files
s Report File Name := C"" []
i File Count := C0 [0]
s Report File Name := Read Directory ("temp/*.pdf", ??)
(Delete Temp Files) Err : Could not find a part of the path 'c:\windows\system32\inetsrv\temp'.
end
Regards

John W
User avatar
john w
 
Posts: 834
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA

Re: Path statements?

Postby ljwilson » 19 January 2024, 17:53

InDe temp folder is relative to where you published the app. And I believe you have to use the full path. The inde tempPath function will give you that.

...jack
ljwilson
 
Posts: 783
Joined: 26 November 2013, 14:15

Re: Path statements?

Postby john w » 19 January 2024, 18:10

Thanks I am trying that now
Regards

John W
User avatar
john w
 
Posts: 834
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA

Re: Path statements?

Postby john w » 19 January 2024, 19:01

Thanks I was able to use the tempPath and get the missing information.

My automated delete process is now working. It will save me maintenance time and make 'more' better.
Regards

John W
User avatar
john w
 
Posts: 834
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA


Return to Tips & Tricks

Who is online

Users browsing this forum: No registered users and 20 guests

cron