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
Delpi Knowledge learning ...
by
Warfley
[
Today
at 08:58:57 am]
Two version of Lazarus - ...
by
TRon
[
Today
at 08:37:59 am]
SaveToFile via 2 streams:...
by
AlexTP
[
Today
at 05:30:17 am]
Encapsulating existing fu...
by
TRon
[
Today
at 05:26:26 am]
FPImageException while l...
by
TRon
[
Today
at 04:56:04 am]
Retreive SQL query result...
by
egsuh
[
Today
at 04:21:27 am]
LAMW - opening URL in ext...
by
Manlio
[
Today
at 03:20:58 am]
DockedFormEditor trouble
by
Manuel Santana
[
Today
at 03:09:22 am]
Error : Operation cannot ...
by
essence-ciel
[
Today
at 01:41:07 am]
Compiling shadow classes ...
by
Alex.Machado
[
Today
at 12:42:17 am]
Lazarus and XML
by
wp
[October 01, 2023, 11:50:49 pm]
CreateWindowHandle
by
Paolo
[October 01, 2023, 11:27:03 pm]
cannot find -lTpNumLib: N...
by
hertz99
[October 01, 2023, 11:17:54 pm]
convert kml file to gps
by
folkeu08
[October 01, 2023, 11:15:34 pm]
Intrinsic for type of int...
by
jamie
[October 01, 2023, 09:37:09 pm]
List of FPC intrinsic
by
simone
[October 01, 2023, 08:57:48 pm]
Set of Enum in generic
by
Okoba
[October 01, 2023, 06:36:54 pm]
unit not found (StdCtrls)
by
munair
[October 01, 2023, 04:05:45 pm]
VAR RECORD doesn't work?
by
jamie
[October 01, 2023, 03:52:15 pm]
[ Solved ] howto set onmo...
by
Jumbo
[October 01, 2023, 02:57:22 pm]
[SOLVED] console app wind...
by
senglit
[October 01, 2023, 12:21:57 pm]
drop picture from browser
by
Handoko
[October 01, 2023, 07:50:10 am]
Searchkey Tdbf
by
Handoko
[October 01, 2023, 05:56:02 am]
LAMW - (SOLVED) upload fi...
by
Mongkey
[October 01, 2023, 05:20:23 am]
Make visual components no...
by
sstvmaster
[September 30, 2023, 11:37:48 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: [SOLVED] Help for downloand file (Read 1768 times)
magleft
Jr. Member
Posts: 97
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: 97
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: 5493
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: 97
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