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
Centralising code
by
Kaller
[
Today
at 08:54:27 am]
Importing TLB File, missi...
by
Weitentaaal
[
Today
at 08:39:49 am]
Getting TCustomAttribute
by
Weitentaaal
[
Today
at 08:26:34 am]
Has anyone installed Laza...
by
zeljko
[
Today
at 08:26:23 am]
install on 13.5 problems ...
by
Seenkao
[
Today
at 02:57:30 am]
LAMW -robotium UI automat...
by
Mongkey
[
Today
at 02:55:29 am]
Trying to figure out LazD...
by
r.lukasiak
[
Today
at 01:49:43 am]
Raspberry Pi - rebuild ID...
by
Martin_fr
[
Today
at 01:17:33 am]
Custom PopUp Menu with Co...
by
Josh
[
Today
at 12:52:31 am]
form transparency
by
toby
[
Today
at 12:52:14 am]
RLE: Run Length Encode T...
by
KodeZwerg
[
Today
at 12:35:40 am]
Lazarus Release Candidate...
by
PeterBB
[September 20, 2023, 11:49:12 pm]
Create library, why not c...
by
Josh
[September 20, 2023, 11:30:50 pm]
Custom PopUp Menu with Co...
by
Batz95
[September 20, 2023, 10:41:49 pm]
Mazemaker (efg)
by
Lulu
[September 20, 2023, 09:05:49 pm]
[SOLVED]TbufDataSet and s...
by
Zvoni
[September 20, 2023, 08:34:24 pm]
static link libc.a
by
toby
[September 20, 2023, 08:26:17 pm]
Cocoa window showmodal er...
by
FangQ
[September 20, 2023, 07:46:48 pm]
Tracking TChart cursor
by
wp
[September 20, 2023, 07:34:33 pm]
[Solved] Cocoa widgetset ...
by
FangQ
[September 20, 2023, 07:30:30 pm]
[SOLVED]DBGRID : How to t...
by
micoudic
[September 20, 2023, 06:45:27 pm]
[solved] Firebird: Copy t...
by
Nicole
[September 20, 2023, 06:26:39 pm]
Q about UXTheme: GetTheme...
by
d7_2_laz
[September 20, 2023, 05:11:38 pm]
[Solved] "try ... except ...
by
Edson
[September 20, 2023, 05:05:43 pm]
slower - Timer
by
michoux
[September 20, 2023, 01:09:13 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: [SOLVED] Help for downloand file (Read 1665 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: 5475
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