StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
xinjing  
#1 Posted : Saturday, February 8, 2020 4:05:32 AM(UTC)
xinjing

Rank: Newbie

Reputation:

Groups: Approved
Joined: 3/30/2019(UTC)
Posts: 2
Location: NY

I can directly get the name of the folder child through CMD, I do n’t know how the script can get the recursive child file name of the folder in the Explorer window to the clipboard
Thanks in advance
Rob  
#2 Posted : Wednesday, February 12, 2020 12:45:07 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,357
United States
Location: Tampa, FL

Thanks: 28 times
Was thanked: 418 time(s) in 356 post(s)
Sorry for the late reply. Can you give me a little more details on exactly what you are trying to accomplish?
xinjing2019  
#3 Posted : Thursday, February 13, 2020 4:00:58 AM(UTC)
xinjing2019

Rank: Newbie

Reputation:

Groups: Approved
Joined: 12/1/2019(UTC)
Posts: 2
United States
Location: NY

Get the names of these files, copy them to the clipboard, or paste them into Notepad
[img=https://photos.app.goo.gl/kcN6f1g1wAh44yXb9]https://photos.app.goo.gl/kcN6f1g1wAh44yXb9[/img]

Edited by user Thursday, February 13, 2020 4:02:37 AM(UTC)  | Reason: Not specified

Rob  
#4 Posted : Saturday, February 15, 2020 4:16:08 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,357
United States
Location: Tampa, FL

Thanks: 28 times
Was thanked: 418 time(s) in 356 post(s)
Try this unpublished release (I still need to add the translation entries, Script Help entries, etc. before publishing it):

https://strokesplus.net/files/StrokesPlus.net_Setup_0.3.8.1.exe

Use this script, it will copy the files to the clipboard - it assumes you're drawing the gesture on the Explorer window:
(note: this will not work on the actual Desktop itself, only in a normal Explorer window - but you can select the Desktop folder in Explorer and it will work there)
Code:
var onlyNames = true; //Only include the name, not the full path and name
var includeFolders = true; //Include folders as well as files
var includeLinks = true; //Include links (shortcuts)

var files = sp.GetItemsInExplorer(action.Window.HWnd, onlyNames, includeFolders, includeLinks);
var str = "";
var delim = "";
//Loop through each item
for(i = 0; i < files.Length; i++)
{
    str = str + delim + files[i];
    delim = "\r\n";
}

if(str.length == 0) str = "(no items found)";
clip.SetText(str); //Copy the result to the clipboard

Edited by user Saturday, February 15, 2020 4:23:18 PM(UTC)  | Reason: Not specified

thanks 1 user thanked Rob for this useful post.
Yuichi on 3/24/2020(UTC)
xinjing  
#5 Posted : Wednesday, February 19, 2020 2:21:38 AM(UTC)
xinjing

Rank: Newbie

Reputation:

Groups: Approved
Joined: 3/30/2019(UTC)
Posts: 2
Location: NY

Thank you for your reply.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.