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
Notarization under macOS ...
by
dbannon
[
Today
at 12:53:48 pm]
Accessing JSON data from ...
by
TRon
[
Today
at 12:31:30 pm]
Operator not Overloaded E...
by
TRon
[
Today
at 11:30:00 am]
Poor optimization of cons...
by
440bx
[
Today
at 10:29:57 am]
Can't hide main window
by
zeljko
[
Today
at 08:16:40 am]
“case (a,b) of...” doesn’...
by
440bx
[
Today
at 08:02:32 am]
sslsockets, TSSLSocketHan...
by
r.lukasiak
[
Today
at 07:55:25 am]
Cross platform DirectoryW...
by
r.lukasiak
[
Today
at 07:44:18 am]
Passing TDate parameter i...
by
Arskin_Fertrubble
[
Today
at 03:54:53 am]
Class method inheritance ...
by
Kraig
[
Today
at 03:36:30 am]
[SOLVED] Components with ...
by
PascalDragon
[September 28, 2023, 10:56:29 pm]
Proposal: Record Composit...
by
PascalDragon
[September 28, 2023, 10:09:08 pm]
[solved] Confusing scope(...
by
PascalDragon
[September 28, 2023, 10:07:39 pm]
Help explain this closure...
by
PascalDragon
[September 28, 2023, 09:53:07 pm]
c++ library and strings
by
PascalDragon
[September 28, 2023, 09:42:40 pm]
Is it possible to jump in...
by
PascalDragon
[September 28, 2023, 09:31:58 pm]
is there a way to Forward...
by
PascalDragon
[September 28, 2023, 09:27:32 pm]
Make visual components no...
by
pleumann
[September 28, 2023, 08:20:01 pm]
Saving a Form state (rela...
by
Curt Carpenter
[September 28, 2023, 08:10:45 pm]
TDbf
by
1HuntnMan
[September 28, 2023, 07:37:26 pm]
PV_Unpacker for ZIP, RAR,...
by
domasz
[September 28, 2023, 07:00:37 pm]
Searchkey Tdbf
by
rcmz
[September 28, 2023, 06:57:45 pm]
Debugger crashes with App...
by
geraldholdsworth
[September 28, 2023, 03:51:37 pm]
Scrolling TStringGrid
by
big_M
[September 28, 2023, 02:48:43 pm]
Large system, i2C to go w...
by
pascalbythree
[September 28, 2023, 02:47:33 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: [SOLVED] Help for downloand file (Read 1745 times)
magleft
Jr. Member
Posts: 95
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: 95
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: 5489
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: 95
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