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
Can I disable procedure '...
by
JuhaManninen
[
Today
at 03:55:54 pm]
Creating a "compressed" s...
by
paweld
[
Today
at 03:53:42 pm]
Lazarus Release Candidate...
by
JuhaManninen
[
Today
at 03:45:51 pm]
Unable to write "/usr/sha...
by
Martin_fr
[
Today
at 03:37:55 pm]
TPanel slider position
by
Handoko
[
Today
at 02:41:25 pm]
[Solved] How to shuffle l...
by
Thaddy
[
Today
at 02:24:10 pm]
TCustomShellTreeView.GetF...
by
Alexx2000
[
Today
at 01:28:12 pm]
Advance Record operators ...
by
Thaddy
[
Today
at 01:14:35 pm]
Virtual Method
by
Mr.Madguy
[
Today
at 01:13:41 pm]
Difference between TSpeed...
by
Zoran
[
Today
at 12:44:57 pm]
BGRA Controls Package Ico...
by
paweld
[
Today
at 11:48:50 am]
unable to rebuild Lazarus
by
Paolo
[
Today
at 11:36:47 am]
TAnchorDockPanel - Save a...
by
zamtmn
[
Today
at 11:25:56 am]
[SOLVED] Lazarus png file
by
Pe3s
[
Today
at 11:22:32 am]
[SOLVED] How to force Eve...
by
Hartmut
[
Today
at 10:54:57 am]
[SOLVED] TStringGrid colo...
by
Hansvb
[
Today
at 10:33:43 am]
How to detect uninitialis...
by
kwyan
[
Today
at 10:28:19 am]
Is there an indexable str...
by
cdbc
[
Today
at 10:24:58 am]
Online Package Manager
by
lainz
[
Today
at 09:54:36 am]
Error: -macosx_version_mi...
by
dbannon
[
Today
at 09:06:18 am]
BGRABitmap - showcase -
by
Mongkey
[
Today
at 08:27:14 am]
Date-Stamp DBDateEdit
by
cdbc
[
Today
at 08:00:06 am]
i can't inatall Dam dialo...
by
paweld
[
Today
at 07:12:41 am]
Un-register an LCL Compon...
by
dbannon
[
Today
at 03:28:20 am]
[SOLVED]Bash commands and...
by
TRon
[
Today
at 02:52:35 am]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: [SOLVED] Help for downloand file (Read 2183 times)
magleft
Full Member
Posts: 102
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
Full Member
Posts: 102
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: 1222
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: 5648
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
Full Member
Posts: 102
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