Page 1 of 1
Code not working
Posted: 09 Sep 2018 05:20
by CookieMonster
Beginning to touch scripting, although the following code isn't working ?
Code: Select all
if(exists("C:\Transfer")){
msg "Yes";
}else{
msg "No";
}
Re: Code not working
Posted: 09 Sep 2018 05:26
by jupe
https://www.xyplorer.com/tour.php?page=scripting
Read the rules under Syntax, pay attention to the one about indentation.
viewtopic.php?f=7&t=13831&p=126222#p126222
Moving this to Q&A
Re: Code not working
Posted: 09 Sep 2018 17:37
by CookieMonster
Code: Select all
$flist = listfolder("C:\Apple","Q",1);
msg $flist
Why doesn't the variable $flist print the result ?
Re: Code not working
Posted: 09 Sep 2018 18:08
by highend
Probably because there are no files with a name that contains "q" inside that folder?
Re: Code not working
Posted: 09 Sep 2018 18:13
by CookieMonster
I have a few files which either begin or have the letter "Q" in their file name.
Re: Code not working
Posted: 09 Sep 2018 18:17
by highend
Code: Select all
text "_" . quicksearch("*q* /fn", "C:\Apple") . "_";
Show the result