Parameter that the "CopyNames ..." command does NOT copy the file extension?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Seyran_72
Junior Member
Junior Member
Posts: 29
Joined: 2023-06-11, 21:55 UTC

Parameter that the "CopyNames ..." command does NOT copy the file extension?

Post by *Seyran_72 »

Hi all! Tell me, please, what parameter do I need to insert so that the "CopyNames ..." command does NOT copy the file extension? Thank you!
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: Parameter that the "CopyNames ..." command does NOT copy the file extension?

Post by *Fla$her »

There is no such option. There is only a request for it:
Stefan2 wrote: 2023-05-04, 06:05 UTC I would like to suggest a new command
cm_CopyBASENamesToClip >> Copy BASE of filenames to clipboard , w/o extension , example: notepad

or "cm_CopyNamesToClip 1" >> Copy BASE of filenames to clipboard , w/o extension , example: notepad
For now you can use the button:

Code: Select all

TOTALCMD#BAR#DATA
mshta.exe "javascript:with(new ActiveXObject('Scripting.FileSystemObject')){clipboardData.setData('text',
openTextFile(getSpecialFolder(2)+'\\'+'%WF'.replace(/.+(?=CMD\w+\.tmp$)/,''),1,0,-1).readAll().replace(/\.[^.\\]+(?=\r)/g,'').slice(0,-2))};close()"
wcmicon2.dll,45
Copy folder names and base file names

1
Overquoting is evil! 👎
Seyran_72
Junior Member
Junior Member
Posts: 29
Joined: 2023-06-11, 21:55 UTC

Re: Parameter that the "CopyNames ..." command does NOT copy the file extension?

Post by *Seyran_72 »

Wow! Super!! Everything is working! Thanks a lot!! ))
Seyran_72
Junior Member
Junior Member
Posts: 29
Joined: 2023-06-11, 21:55 UTC

Re: Parameter that the "CopyNames ..." command does NOT copy the file extension?

Post by *Seyran_72 »

True, the antivirus constantly asks - "whether to allow malicious code"? )) It is necessary to beat the antivirus)))
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: Parameter that the "CopyNames ..." command does NOT copy the file extension?

Post by *Fla$her »

Try adding mshta.exe to the whitelist.
You can also dig into the options of the "Custom level..." button after executing: rundll32 inetcpl.cpl, LaunchSecurityDialogEx
Overquoting is evil! 👎
Post Reply