Hi all!
I am creating command in a script file and would to use quotes in its caption.
Is it possible without recurring to variables?
Quotes in captions
-
highend
- Posts: 14996
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Quotes in captions
Do you mean something like this?
Code: Select all
"abc's" text "abc";
"def's" text "def";
One of my scripts helped you out? Please donate via Paypal
-
rebr
- Posts: 41
- Joined: 17 Nov 2013 20:30
Re: Quotes in captions
Something like this:highend wrote:Do you mean something like this?
Code: Select all
"abc's" text "abc"; "def's" text "def";
Code: Select all
"Backup to ""Desktop""|%desktop% : bak2desktop"
$local = %desktop%;
// Data e hora:
$tc = <date yyyy-mm-dd hh:nn:ss>;
$td = gettoken($tc, 1, " ");
$th = gettoken($tc, 2, " ");
// Fragmentar a hora:
$h = substr($th, 0, 2);
$m = substr($th, 3, 2);
$s = substr($th, 6, 2);
// Nome final do arquivo:
$n = $td $h . "h" . $m;
if (exists($local . \Backup\) != 2) { new($local . "\Backup", "dir"); }
copyas '* ' . "(bak " . $n . ")" . '.?', "$local" . "\Backup\";-
rebr
- Posts: 41
- Joined: 17 Nov 2013 20:30
Re: Quotes in captions
Sorry a had meant double quotes... 
-
highend
- Posts: 14996
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Quotes in captions
Don't know if this is possible...
Just use single quotes instead
Just use single quotes instead
One of my scripts helped you out? Please donate via Paypal
-
LittleBiG
- Posts: 1848
- Joined: 08 Apr 2011 12:57
- Location: Win10x64
Re: Quotes in captions
Indeed. I have tried a couple of things without success.highend wrote:Don't know if this is possible...
Just use single quotes instead
-
rebr
- Posts: 41
- Joined: 17 Nov 2013 20:30
Re: Quotes in captions
I got it using variables this way:
Actually to avoid using variables, I use curved double quotes:
But you know when you put something in head and just don't give up..... 
Code: Select all
"_Initialize"
perm $p_tmpCaption1 = "Send to ""Backup"" folder";
/*
[...]
*/
"$p_tmpCaption1"
text OK;Code: Select all
"Backup to “Desktop”|%desktop% : bak2desktop"
$local = %desktop%;
XYplorer Beta Club