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
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
H2Pas can't handle EXP CA...
by
TRon
[
Today
at 06:20:17 am]
Creating a SDL child wind...
by
TRon
[
Today
at 06:17:08 am]
String replace or add ' ...
by
Thaddy
[
Today
at 06:14:41 am]
File operations blocking ...
by
atlatl
[
Today
at 05:44:51 am]
Add additional Components...
by
Remy Lebeau
[
Today
at 05:08:22 am]
Nested declarations insid...
by
440bx
[
Today
at 04:26:28 am]
[solved] triple click
by
dbannon
[
Today
at 01:46:22 am]
SDL2 image rotation Probl...
by
Fred vS
[
Today
at 01:13:15 am]
SetPart ?
by
BubikolRamios
[January 15, 2025, 11:32:19 pm]
TRichMemo High Lighted te...
by
What I can do
[January 15, 2025, 11:20:37 pm]
Lazarus/FPC Flatpak appli...
by
Chronos
[January 15, 2025, 09:56:54 pm]
The mouse and using ptcgr...
by
TBMan
[January 15, 2025, 09:15:40 pm]
TImage colors incorrect
by
Jonny
[January 15, 2025, 08:51:56 pm]
const declaration
by
freemind001
[January 15, 2025, 07:54:16 pm]
SDL2: Runtime Error 216 o...
by
TRon
[January 15, 2025, 07:44:59 pm]
Iterator on non-existing ...
by
Warfley
[January 15, 2025, 05:45:03 pm]
Batch "publish" of all pr...
by
MarkMLl
[January 15, 2025, 05:42:45 pm]
[solved] Setting the init...
by
TBMan
[January 15, 2025, 04:28:08 pm]
MQTT Client
by
cdbc
[January 15, 2025, 03:06:25 pm]
Issue getting and setting...
by
d7_2_laz
[January 15, 2025, 02:28:48 pm]
Problem with cell comment
by
kjteng
[January 15, 2025, 02:17:57 pm]
[SOLVED]Troubles when con...
by
bytebites
[January 15, 2025, 01:15:16 pm]
FP crashes after running ...
by
marcov
[January 15, 2025, 10:06:01 am]
Repository mirror and Ind...
by
Thaddy
[January 15, 2025, 10:02:53 am]
how to find application r...
by
Packs
[January 15, 2025, 06:51:05 am]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: [SOLVED] Help for downloand file (Read 3695 times)
magleft
Full Member
Posts: 125
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: 125
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: 1255
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: 6640
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: 125
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