StrokesPlus.net Forum
»
General Discussion
»
Scripts
»
Script to get folder child file name in Explorer window
Rank: Newbie
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
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,359 Location: Tampa, FL Thanks: 28 times Was thanked: 419 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?
|
|
|
|
Rank: Newbie
Groups: Approved
Joined: 12/1/2019(UTC) Posts: 2 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
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,359 Location: Tampa, FL Thanks: 28 times Was thanked: 419 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.exeUse 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
|
1 user thanked Rob for this useful post.
|
|
|
Rank: Newbie
Groups: Approved
Joined: 3/30/2019(UTC) Posts: 2 Location: NY
|
Thank you for your reply.
|
|
|
|
StrokesPlus.net Forum
»
General Discussion
»
Scripts
»
Script to get folder child file name in Explorer window
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.
Important Information:
The StrokesPlus.net Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close