can i import a totolcommander list of files?
-
jupe
- Posts: 3478
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: can i import a totolcommander list of files?
you can select the file you just created and put "paper:<curitem>" in the address bar too if you find it easier.
-
giuliastar
- Posts: 365
- Joined: 14 Sep 2013 07:22
Re: can i import a totolcommander list of files?
hihighend wrote:You have to do this in the <xydata>\paper folder!
And then you use paper:<base name of the file you've just created>
to display all items in it...
ok but is the only way?
is there a way to drag & drop a bunch of files in xyplorer?
thanks
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: can i import a totolcommander list of files?
you can drag things on to a custom toolbar button (or a UDC, or a script file).
Here, try this. This will add a toolbar button. You drag a TC collection text file on to that button, and the files in that collection will be listed by XY. You then do tagging or whatever with the files.
step 1. Copy this code below.
step 2. type this in XYplorer's addressbar and press ENTER. A new button with clipboard icon will be added to the toolbar.
step 3. Now drag a collection file from TotalCommander on to this button. The items in that collection should be listed by XYplorer.
Here, try this. This will add a toolbar button. You drag a TC collection text file on to that button, and the files in that collection will be listed by XY. You then do tagging or whatever with the files.
step 1. Copy this code below.
Code: Select all
Snip: CTB 1
XYplorer 18.50.0307, 12/13/2017 12:55:10 PM
Action
NewUserButton
Name
List Files in TC collections
Icon
:paste
ScriptL
// drop a TC collection file on this button and the items will be listed.
if (exists(<drop>) == 1) {
$list = readfile(<drop>);
$items = replace($list, <crlf>, ';');
goto $items.'? /n';
}
ScriptR
FireClick
0Code: Select all
::snippet <clp>;Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
giuliastar
- Posts: 365
- Joined: 14 Sep 2013 07:22
Re: can i import a totolcommander list of files?
hiSammaySarkar wrote:you can drag things on to a custom toolbar button (or a UDC, or a script file).
Here, try this. This will add a toolbar button. You drag a TC collection text file on to that button, and the files in that collection will be listed by XY. You then do tagging or whatever with the files.
step 1. Copy this code below.step 2. type this in XYplorer's addressbar and press ENTER. A new button with clipboard icon will be added to the toolbar.Code: Select all
Snip: CTB 1 XYplorer 18.50.0307, 12/13/2017 12:55:10 PM Action NewUserButton Name List Files in TC collections Icon :paste ScriptL // drop a TC collection file on this button and the items will be listed. if (<drop>) { $list = readfile(<drop>); $items = replace($list, <crlf>, ';'); goto $items.'?'; } ScriptR FireClick 0step 3. Now drag a collection file from TotalCommander on to this button. The items in that collection should be listed by XYplorer.Code: Select all
::snippet <clp>;
thanks a lot , i mean send files from total commander or drag and drop without a txt file
is it possibile?
thanks again appreciate your help a lot
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: can i import a totolcommander list of files?
Ah, right. I had the same idea. Actually listing dropped items from any application can be a great feature. So I'd already modified that snippet for myself.giuliastar wrote:thanks a lot , i mean send files from total commander or drag and drop without a txt file
is it possibile?
Use this code instead.
Code: Select all
Snip: CTB 1
XYplorer 18.50.0307, 12/13/2017 1:16:42 PM
Action
NewUserButton
Name
List dropped
Icon
:crl
ScriptL
// drop items from external apps onto this button and the items will be listed .
$list = <drop>;
if ($list) {
$items = replace($list, <crlf>, ';');
$target = $items.'? /n';
goto $target;
}
ScriptR
FireClick
0Anything dropped on this button should be listed by XYplorer, as you wanted.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
giuliastar
- Posts: 365
- Joined: 14 Sep 2013 07:22
Re: can i import a totolcommander list of files?
HiSammaySarkar wrote:Ah, right. I had the same idea. Actually listing dropped items from any application can be a great feature. So I'd already modified that snippet for myself.giuliastar wrote:thanks a lot , i mean send files from total commander or drag and drop without a txt file
is it possibile?
Use this code instead.
[/size]The same drill as before. Copy the code, type "::snippet <clp>;" into addressbar, and find a new added button (with a nutty icon this time).Code: Select all
Snip: CTB 1 XYplorer 18.50.0307, 12/13/2017 1:16:42 PM Action NewUserButton Name List dropped Icon :crl ScriptL // drop items from external apps onto this button and the items will be listed . $list = <drop>; if ($list) { $items = replace($list, <crlf>, ';'); $target = $items.'? /n'; goto $target; } ScriptR FireClick 0
Anything dropped on this button should be listed by XYplorer, as you wanted.
i select
1)
Scripting ->run script
2) paste your script and click ok
3) address bar ::snippet <clp>; & got it error

i have no button , what's wrong?
thanks
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: can i import a totolcommander list of files?
Where did I ask you to do this?giuliastar wrote:1)
Scripting ->run script
2) paste your script and click ok
Please read the directions carefully.
Alternatively, try this. type just "::snippet;" in the address bar. A textbox will open. Paste the entire code there and press OK.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
giuliastar
- Posts: 365
- Joined: 14 Sep 2013 07:22
Re: can i import a totolcommander list of files?
hi have read itSammaySarkar wrote:Where did I ask you to do this?giuliastar wrote:1)
Scripting ->run script
2) paste your script and click ok
Please read the directions carefully.
Alternatively, try this. type just "::snippet;" in the address bar. A textbox will open. Paste the entire code there and press OK.
but
&you can drag things on to a custom toolbar button (or a UDC, or a script file).
Here, try this. This will add a toolbar button. You drag a TC collection text file on to that button, and the files in that collection will be listed by XY. You then do tagging or whatever with the files.
step 1. Copy this code below.
there is no indication about where should i pastestep 2. type this in XYplorer's addressbar and press ENTER. A new button with clipboard icon will be added to the toolbar.
i typed and pasted your code i have an icon and it work beautifully!!
this script could be added in Script Exchange , it's really amazing
thanks
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: can i import a totolcommander list of files?
Well, you could have tried following the directions as laid out anyway.giuliastar wrote:&SammaySarkar wrote:step 1. Copy this code below.there is no indication about where should i pastestep 2. type this in XYplorer's addressbar and press ENTER. A new button with clipboard icon will be added to the toolbar.
See, in step 2 there, I asked you to type "::snippet <clp>;" ? Well, the <clp> bit automatically gets the clipboard content (the copied code in this case). So you did not need to paste anywhere yourself.
Anyway, you got it working, and I'm glad to help. Yeah, I agree, this can be a really useful snippet.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
giuliastar
- Posts: 365
- Joined: 14 Sep 2013 07:22
Re: can i import a totolcommander list of files?
hiSammaySarkar wrote:Well, you could have tried following the directions as laid out anyway.giuliastar wrote:&SammaySarkar wrote:step 1. Copy this code below.there is no indication about where should i pastestep 2. type this in XYplorer's addressbar and press ENTER. A new button with clipboard icon will be added to the toolbar.![]()
See, in step 2 there, I asked you to type "::snippet <clp>;" ? Well, the <clp> bit automatically gets the clipboard content (the copied code in this case). So you did not need to paste anywhere yourself.
Anyway, you got it working, and I'm glad to help. Yeah, I agree, this can be a really useful snippet.
could you post in Script Exchange ?
thanks pal , appreciate your help
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: can i import a totolcommander list of files?
mhh,it feeels a bit too bare for an individual thread at scripts-exchange. I'd first like to flesh it out more; add some enhancements... keep a look-out.giuliastar wrote:could you post in Script Exchange ?
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
giuliastar
- Posts: 365
- Joined: 14 Sep 2013 07:22
Re: can i import a totolcommander list of files?
hiSammaySarkar wrote:mhh,it feeels a bit too bare for an individual thread at scripts-exchange. I'd first like to flesh it out more; add some enhancements... keep a look-out.giuliastar wrote:could you post in Script Exchange ?
may i ask you few questions?
just because i'm a noob /novice and english is not my native language
::snippet <clp>; -> does it create a new button ? or what does this command do?
just because i have not found in guide
thanks
Last edited by giuliastar on 13 Dec 2017 11:49, edited 1 time in total.
-
highend
- Posts: 15004
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: can i import a totolcommander list of files?
One of my scripts helped you out? Please donate via Paypal
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: can i import a totolcommander list of files?
Meanwhile, I posted the script with some bells and whistles to Script Exchange: viewtopic.php?f=7&t=18235
I'm glad that you liked it so much.
I'm glad that you liked it so much.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
giuliastar
- Posts: 365
- Joined: 14 Sep 2013 07:22
Re: can i import a totolcommander list of files?
hiSammaySarkar wrote:Meanwhile, I posted the script with some bells and whistles to Script Exchange: viewtopic.php?f=7&t=18235
I'm glad that you liked it so much.
you know i still don't know how run a script?
and how can have a list of script in xyplorer?
yes i know it's sad
thanks
XYplorer Beta Club