Development :
K-Meleon Web Browser Forum
K-Meleon development related discussions.
Return pref STRING in Quotes ?
Posted by:
CaptnBlack
Date: August 18, 2006 01:50PM
I'm working on this macros that uses NirCmd to create a folder:
MakeDir{
$ImgDir=getpref(STRING,"kmeleon.general.imageDir");
$AndCmnd= "execmd mkdir " .$ImgDir. "\\%date:~4,2%-%date:~7,2%-%date:~10,4%\"";
exec("Tools\\NirCmd\\nircmd.exe " . $AndCmnd);
}
Since the $ImgDir variable can return a string that has spaces ( for example C:\My Documents\My Pictures), how can I return the string contained inside quotes ?
Any help would be greatly appreciated.
TIA
Re: Return pref STRING in Quotes ?
Posted by:
alain aupeix chez wanadoo fr
Date: August 18, 2006 01:58PM
$AndCmnd= "execmd mkdir \"" .$ImgDir. "\"\\%date:~4,2%-%date:~7,2%-%date:~10,4%\"";
Perhaps like this ?
A+
Re: Return pref STRING in Quotes ?
Posted by:
CaptBlack
Date: August 18, 2006 02:10PM
Yes!
That works.
I've tried every combination but that one... seems like anyway... lol
Thank you very much.