Script Request - Select pre-determined folders
Script Request - Select pre-determined folders
Is there an easy way to do this? Let's say I have a folder c:\fruits\. In the fruits folder, there are an undetermined number of folders; c:\fruits\apples\, c:\fruits\oranges\, c:\fruits\pineapples\. With c:\fruits\ as my active tab, I want to be able to run a script that would multi-select certain pre-determined folders - say just c:\fruits\apples\ and c:\fruits\pineapples\. Thanks in advance for any suggestions.
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
Re: Script Request - Select pre-determined folders
Can you clarify how the desired folders are "pre-determined"? I'm not a scripter but I'm sure others would want to know more what you're trying to accomplish.lem wrote: With c:\fruits\ as my active tab, I want to be able to run a script that would multi-select certain pre-determined folders
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
Re: Script Request - Select pre-determined folders
Thanks for your reply - I figured I wasn't explaining it very well...
By pre-determined, I mean I know the folders that I want selected ahead of time, and always want just those folders selected when I run the script. I assume this means I would hard-code in the script the specific folders I want selected and this is fine.
By pre-determined, I mean I know the folders that I want selected ahead of time, and always want just those folders selected when I run the script. I assume this means I would hard-code in the script the specific folders I want selected and this is fine.
Re: Script Request - Select pre-determined folders
Use the following SC (for your example)
Code: Select all
selectitems "apples|pineapples";Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build
Windows 7/10
Always using the latest stable two-decimal build
Re: Script Request - Select pre-determined folders
Perfect - thank you!zer0 wrote:Use the following SC (for your example)Code: Select all
selectitems "apples|pineapples";
Re: Script Request - Select pre-determined folders
I'm brand new to XYPlorer and lem's question is one I had. But what I want to do is automate backing up the directories (per lem's example) once they're selected. As in, suppose I want to use the XYPlorer backup command to backup to my d: drive.
I assume it's possible (in a script? or is there a better way?) to select multiple directories and then backup to another drive?
Which is probably elementary but I'm just getting started with XYPlorer somehow I'm not finding it easy to figure out from the help file how to do this. Any help/suggestions would be appreciated.
I assume it's possible (in a script? or is there a better way?) to select multiple directories and then backup to another drive?
Which is probably elementary but I'm just getting started with XYPlorer somehow I'm not finding it easy to figure out from the help file how to do this. Any help/suggestions would be appreciated.
-
admin
- Site Admin
- Posts: 64857
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Script Request - Select pre-determined folders
Hi,T-M wrote:I'm brand new to XYPlorer and lem's question is one I had. But what I want to do is automate backing up the directories (per lem's example) once they're selected. As in, suppose I want to use the XYPlorer backup command to backup to my d: drive.
I assume it's possible (in a script? or is there a better way?) to select multiple directories and then backup to another drive?
Which is probably elementary but I'm just getting started with XYPlorer somehow I'm not finding it easy to figure out from the help file how to do this. Any help/suggestions would be appreciated.
You don't even need to first select the items. Simply use a script line like this (will back up folders "E:\Test\a" and "E:\Test\b" to "D:\Backup\Test\<date yyyy-mm-dd>"):
Code: Select all
backupto "D:\Backup\Test\<date yyyy-mm-dd>", "E:\Test\a|E:\Test\b";Don't hesitate to ask if you need further tips.
Don
FAQ | XY News RSS | XY X
Re: Script Request - Select pre-determined folders
Thanks, that helped get me steered to the right places in the user guide. This is neat stuff, I can automate a bunch of things now. 
XYplorer Beta Club