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
How to detect if a String...
by
jamie
[
Today
at 11:38:49 pm]
License Agreement
by
RayoGlauco
[
Today
at 11:33:44 pm]
How to print a DrawGrid
by
wp
[
Today
at 11:29:20 pm]
virus with lazarus-3.0RC2...
by
rvk
[
Today
at 11:11:01 pm]
Feature announcement: Fun...
by
amerou
[
Today
at 10:18:18 pm]
Online Package Manager
by
wp
[
Today
at 07:57:56 pm]
i can't inatall Dam dialo...
by
wp
[
Today
at 07:55:42 pm]
(new Topic) i can't inata...
by
majid.ebru
[
Today
at 07:43:23 pm]
Lazarus Release Candidate...
by
dedrasta
[
Today
at 05:39:19 pm]
Flock of Birds
by
Dzandaa
[
Today
at 05:30:05 pm]
https page download
by
BubikolRamios
[
Today
at 04:11:51 pm]
Anyone interested in test...
by
Thaddy
[
Today
at 02:44:32 pm]
Unable to write "/usr/sha...
by
Thaddy
[
Today
at 02:26:11 pm]
[SOLVED] TStringGrid.Colu...
by
wp
[
Today
at 11:03:07 am]
Advance Record operators ...
by
Thaddy
[
Today
at 07:51:12 am]
Installing Lazarus on a R...
by
dbannon
[
Today
at 06:45:40 am]
Un-register an LCL Compon...
by
dbannon
[
Today
at 06:07:39 am]
Creating a "compressed" s...
by
maurobio
[December 03, 2023, 11:19:01 pm]
Lazarus 3.9.9 Variable Wa...
by
Martin_fr
[December 03, 2023, 09:27:11 pm]
TCustomShellTreeView.GetF...
by
Alexx2000
[December 03, 2023, 07:22:01 pm]
Can TreeView Node Colours...
by
Bart
[December 03, 2023, 07:21:27 pm]
Two paintbox, how to set ...
by
krolikbest
[December 03, 2023, 06:38:39 pm]
Error: -macosx_version_mi...
by
Koenijn
[December 03, 2023, 06:03:37 pm]
[SOLVED] TPanel slider po...
by
Pe3s
[December 03, 2023, 05:46:45 pm]
Can I disable procedure '...
by
Hartmut
[December 03, 2023, 05:02:00 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: [SOLVED] Help for downloand file (Read 2217 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: 5651
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