copyto command question

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
jcmn
Posts: 179
Joined: 18 Sep 2007 11:34
Location: portugal

copyto command question

Post by jcmn »

I have this script

copyto "c:\atalhos","C:\Users\jose.nunes\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\*.lnk|C:\ProgramData\Microsoft\Windows\Start Menu\Programs\*.lnk",,1,2,1,,0,1,1,,1,;

But it doesn't include all subfolders of the source paths. How can I include existent subfolders?

highend
Posts: 14639
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: copyto command question

Post by highend »

Use a quicksearch() for these two folders instead?
One of my scripts helped you out? Please donate via Paypal

jcmn
Posts: 179
Joined: 18 Sep 2007 11:34
Location: portugal

Re: copyto command question

Post by jcmn »

highend wrote:Use a quicksearch() for these two folders instead?
And then how do I copy the result?

highend
Posts: 14639
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: copyto command question

Post by highend »

Mh?

Untested:

Code: Select all

copyto "c:\atalhos",quicksearch("*.lnk", "C:\Users\jose.nunes\AppData\Roaming\Microsoft\Windows\Start Menu\Programs|C:\ProgramData\Microsoft\Windows\Start Menu\Programs", "|"),,1,2,1,,0,1,1,,1,;
One of my scripts helped you out? Please donate via Paypal

jcmn
Posts: 179
Joined: 18 Sep 2007 11:34
Location: portugal

Re: copyto command question

Post by jcmn »

highend wrote:Mh?

Untested:

Code: Select all

copyto "c:\atalhos",quicksearch("*.lnk", "C:\Users\jose.nunes\AppData\Roaming\Microsoft\Windows\Start Menu\Programs|C:\ProgramData\Microsoft\Windows\Start Menu\Programs", "|"),,1,2,1,,0,1,1,,1,;
Thanks. I was around this kind of solution but didn't know that the source could be a quicksearch.

Post Reply