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
Lazarus.exe does nothing ...
by
wp
[
Today
at 08:23:50 pm]
FPC 3.2.2 / Lazarus 2.2.6...
by
robert rozee
[
Today
at 08:21:47 pm]
Is it possible to jump in...
by
Dzandaa
[
Today
at 07:54:12 pm]
is there a way to Forward...
by
440bx
[
Today
at 07:24:23 pm]
GTK 3 Widget Set Status?
by
zeljko
[
Today
at 06:20:21 pm]
weirdness with fnmatch (l...
by
robert rozee
[
Today
at 05:54:06 pm]
SaveDialog asks for filen...
by
gjunk
[
Today
at 03:50:26 pm]
Saving a Form state (rela...
by
Curt Carpenter
[
Today
at 03:50:01 pm]
Stem and Leaf Plot and In...
by
Zvoni
[
Today
at 03:43:51 pm]
Creating a new unit out o...
by
Okoba
[
Today
at 03:13:28 pm]
Hypocycloid demo
by
lainz
[
Today
at 03:08:18 pm]
Large system, i2C to go w...
by
pascalbythree
[
Today
at 02:14:59 pm]
Linker error with LLVM 15...
by
ChrisR
[
Today
at 01:36:49 pm]
Class Change Color Edit a...
by
emivaldo
[
Today
at 01:19:39 pm]
[fpspreadsheet] Cannot co...
by
veb86
[
Today
at 01:07:53 pm]
LazPaint Plugins
by
circular
[
Today
at 01:02:10 pm]
[SOLVED] QRCode component
by
Pe3s
[
Today
at 12:35:31 pm]
[solved] Confusing scope(...
by
TRon
[
Today
at 12:08:06 pm]
[solved] Website(s) where...
by
TRon
[
Today
at 12:00:01 pm]
[SOLVED] Components with ...
by
alpine
[
Today
at 11:32:31 am]
any workaround of nested ...
by
powerpcer
[
Today
at 11:12:52 am]
DBVirtualGrid - processin...
by
wp
[
Today
at 11:08:54 am]
Cannot get file opening e...
by
ranny
[
Today
at 10:06:29 am]
Improvement of DoCopyProp...
by
lagprogramming
[
Today
at 09:51:24 am]
RasPi: How can i detect t...
by
mdalacu
[
Today
at 09:45:24 am]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: [SOLVED] Help for downloand file (Read 1721 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: 5487
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