Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
How to get command line parameters with all spaces?
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
Macros confuse error mess...
by
PascalDragon
[
Today
at 08:13:25 pm]
Form scaling
by
fxeconomist
[
Today
at 08:09:39 pm]
InstallAware Using Lazaru...
by
Thaddy
[
Today
at 07:21:31 pm]
Post your internal error ...
by
Eugene Loza
[
Today
at 07:12:35 pm]
Lazarus project made on M...
by
Odacir
[
Today
at 06:57:45 pm]
C-evo: New Horizons 1.3.0...
by
Chronos
[
Today
at 06:32:41 pm]
Lazarus for Windows on aa...
by
msintle
[
Today
at 06:32:02 pm]
How can i make this windo...
by
Handoko
[
Today
at 06:23:43 pm]
CocoaInt.CocoaIconUse no ...
by
dsiders
[
Today
at 06:22:10 pm]
Does anyone know why this...
by
Laksen
[
Today
at 06:01:04 pm]
For-in loop over constant...
by
alpine
[
Today
at 05:20:47 pm]
pre-processor symbol when...
by
paule32
[
Today
at 05:11:35 pm]
How are cookies share Web...
by
Thaddy
[
Today
at 04:59:59 pm]
CORBA interface and Varia...
by
JdeHaan
[
Today
at 04:56:48 pm]
Azure sql database will n...
by
wpflum
[
Today
at 04:04:56 pm]
Values of a custom compon...
by
CM630
[
Today
at 01:42:08 pm]
Arabic text, problem on L...
by
marius.maximus
[
Today
at 12:59:47 pm]
[solved] Lazarus does not...
by
wp
[
Today
at 12:38:09 pm]
How does Castle Game Eng...
by
Aistis
[
Today
at 12:21:03 pm]
Minimum code for implemen...
by
MISV
[
Today
at 11:37:54 am]
[re-opened] Package PPU l...
by
CCRDude
[
Today
at 11:19:11 am]
Distro has depreciated qt...
by
TheMouseAUS
[
Today
at 11:12:25 am]
How can I draw a rectangl...
by
jcmontherock
[
Today
at 11:08:24 am]
TBGRABitmap.TextSize retu...
by
KodeZwerg
[
Today
at 10:26:36 am]
Lazreport: Question about...
by
teco
[
Today
at 09:18:07 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to get command line parameters with all spaces? (Read 588 times)
Milsa
Sr. Member
Posts: 309
How to get command line parameters with all spaces?
«
on:
October 31, 2020, 09:11:53 am »
ParamStr(x) has problem with spaces in command line text. How can I get original text from command line with all characters?
Logged
I work with Lazarus 2.2.2, FPC 3.2.2, date 2022-05-15
This information is actual to: 28st Dec 2022
paweld
Hero Member
Posts: 991
Re: How to get command line parameters with all spaces?
«
Reply #1 on:
October 31, 2020, 09:18:07 am »
you must put the parameter in quote, eg:
application.exe "Parameter with spaces"
Logged
Best regards / Pozdrawiam
paweld
Milsa
Sr. Member
Posts: 309
Re: How to get command line parameters with all spaces?
«
Reply #2 on:
October 31, 2020, 10:06:28 am »
Yes, I have bad parameters in Total Commander for launch my application. Excuse me.
I have "%P%N" but correct is ""%P%N""
Logged
I work with Lazarus 2.2.2, FPC 3.2.2, date 2022-05-15
This information is actual to: 28st Dec 2022
MarkMLl
Hero Member
Posts: 6683
Re: How to get command line parameters with all spaces?
«
Reply #3 on:
October 31, 2020, 10:25:39 am »
@Milsa: remember that this is something which is handled by the OS, not by FPC's ParamStr(), so you should have told us what you're using.
MarkMLl
Logged
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories:
https://github.com/MarkMLl?tab=repositories
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
How to get command line parameters with all spaces?
TinyPortal
© 2005-2018