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
Directory Structure ?
by
lainz
[
Today
at 02:03:35 am]
Notarization under macOS ...
by
TRon
[
Today
at 01:40:30 am]
Poor optimization of cons...
by
Warfley
[
Today
at 12:31:10 am]
TBufferedFileStream crash...
by
Bart
[October 02, 2023, 10:35:37 pm]
[Solved]QT5: can't compil...
by
zoltanleo
[October 02, 2023, 10:34:54 pm]
IMAP Search command & uni...
by
Rebell
[October 02, 2023, 10:26:06 pm]
Changing focus with the a...
by
furious programming
[October 02, 2023, 09:26:12 pm]
Delpi Knowledge learning ...
by
rvk
[October 02, 2023, 09:02:10 pm]
Linking error - Cocoa pro...
by
JdeHaan
[October 02, 2023, 08:52:55 pm]
Passing a function as a p...
by
Neville
[October 02, 2023, 08:52:36 pm]
Two version of Lazarus - ...
by
TRon
[October 02, 2023, 08:26:24 pm]
ZenGL Update +android + M...
by
Seenkao
[October 02, 2023, 07:32:03 pm]
No more Dark Mode in Laza...
by
Shebuka
[October 02, 2023, 05:34:27 pm]
How to have Search always...
by
petebanx90
[October 02, 2023, 05:18:54 pm]
How to use the Event Log?
by
petebanx90
[October 02, 2023, 05:16:09 pm]
Active file tab color and...
by
petebanx90
[October 02, 2023, 05:15:13 pm]
Large system, i2C to go w...
by
pascalbythree
[October 02, 2023, 05:11:18 pm]
[ solved ] Image not show...
by
Jumbo
[October 02, 2023, 04:24:31 pm]
Intrinsic for type of int...
by
Okoba
[October 02, 2023, 02:33:37 pm]
LAMW - opening URL in ext...
by
c4p
[October 02, 2023, 02:29:09 pm]
Should i18n work with TLi...
by
wp
[October 02, 2023, 01:33:50 pm]
FPImageException while l...
by
wp
[October 02, 2023, 01:10:21 pm]
Improvement of function E...
by
AlexTP
[October 02, 2023, 11:09:54 am]
Hacktoberfest
by
Eugene Loza
[October 02, 2023, 10:57:24 am]
Compiling shadow classes ...
by
Alex.Machado
[October 02, 2023, 10:32:52 am]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: [SOLVED] Help for downloand file (Read 1776 times)
magleft
Jr. Member
Posts: 97
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: 97
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: 5501
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: 97
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