Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Networking and Web Programming
»
[SOLVED] Help for downloand file
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
What is a .DB file
by
alpine
[
Today
at 05:39:21 pm]
Best practice to store lo...
by
Okoba
[
Today
at 05:32:35 pm]
Array of range and enum
by
Okoba
[
Today
at 05:30:18 pm]
Class Change Color Edit a...
by
Bart
[
Today
at 05:24:13 pm]
Tedit selected text
by
Paolo
[
Today
at 05:01:50 pm]
Linker error with LLVM 15...
by
zeljko
[
Today
at 04:25:44 pm]
Changing the superclass o...
by
pleumann
[
Today
at 04:24:44 pm]
mvvm experimenting
by
Hansvb
[
Today
at 04:18:52 pm]
Proposal: Record Composit...
by
Warfley
[
Today
at 03:32:14 pm]
Application menu in MacOS...
by
ChrisR
[
Today
at 03:16:01 pm]
Help explain this closure...
by
Ryan J
[
Today
at 01:55:56 pm]
Help with Script in Repor...
by
Ever
[
Today
at 01:47:55 pm]
Hypocycloid demo
by
Boleeman
[
Today
at 01:41:28 pm]
Error in TdecompressionSt...
by
Grahame Grieve
[
Today
at 01:25:24 pm]
Lazarus | locate on numer...
by
paweld
[
Today
at 01:02:06 pm]
Confusing scope(s) for ty...
by
tetrastes
[
Today
at 01:02:03 pm]
“case (a,b) of...” doesn’...
by
440bx
[
Today
at 12:53:49 pm]
Large system, i2C to go w...
by
pascalbythree
[
Today
at 10:49:12 am]
c++ library and strings
by
TRon
[
Today
at 10:00:20 am]
Which is best embedded da...
by
Zvoni
[
Today
at 09:04:17 am]
How I can validate if con...
by
Zvoni
[
Today
at 08:50:42 am]
Way to hide a class in th...
by
MarkMLl
[
Today
at 08:28:24 am]
Detecting a vpn
by
af0815
[
Today
at 07:57:34 am]
Mazemaker (efg)
by
Boleeman
[
Today
at 07:32:11 am]
Anders Hejlsberg intervie...
by
440bx
[
Today
at 03:27:21 am]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: [SOLVED] Help for downloand file (Read 1711 times)
magleft
Jr. Member
Posts: 94
Re: Help for downloand file
«
Reply #15 on:
June 02, 2023, 08:30:34 pm »
It works!!! Thanks so much for everyone's help.
Logged
windows 10 64
magleft
Jr. Member
Posts: 94
Re: [SOLVED] Help for downloand file
«
Reply #16 on:
June 03, 2023, 11:32:31 am »
Jurassic Pork
One additional question. How could we set the folder and file name to be saved?
Αnd again I would like to thank you for your help.
«
Last Edit: June 03, 2023, 12:03:32 pm by magleft
»
Logged
windows 10 64
Jurassic Pork
Hero Member
Posts: 1218
Re: [SOLVED] Help for downloand file
«
Reply #17 on:
June 04, 2023, 07:42:55 am »
Hello,
the file is downloaded in the download folder of the used webbrowser. Then you can move the file and rename it in another folder with the
renameFile
function. Example :
Code: Pascal
[Select]
[+]
[-]
var
dat_old
,
dat_new
:
string
;
begin
dat_old
:
=
'C:\olddir\test.txt'
;
dat_new
:
=
'C:\newdir\test.txt'
;
if
RenameFile
(
dat_old
,
dat_new
)
then
begin
ShowMessage
(
'Renaming was successful!'
)
;
end
else
begin
ShowMessage
(
'Error!'
)
;
end
;
end
;
Friendly, J.P
«
Last Edit: June 04, 2023, 08:06:27 am by Jurassic Pork
»
Logged
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko
rvk
Hero Member
Posts: 5484
Re: [SOLVED] Help for downloand file
«
Reply #18 on:
June 04, 2023, 12:24:10 pm »
Moving the file from downloads to the desired location feels like the easy way out
(which isn't to say that's a bad thing
)
It should be possible to set the download location for the chromedriver via the ChromeOptions.
https://sites.google.com/a/chromium.org/chromedriver/capabilities
(Although I'm nog sure how this would be implemented in Webdriver4L.)
Logged
magleft
Jr. Member
Posts: 94
Re: [SOLVED] Help for downloand file
«
Reply #19 on:
June 08, 2023, 05:02:48 pm »
Thanks !!!
Logged
windows 10 64
Print
Pages:
1
[
2
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Networking and Web Programming
»
[SOLVED] Help for downloand file
TinyPortal
© 2005-2018