Page 1 of 1

automatic file creation with the name in the clipboard

Posted: 11 Jan 2021 11:39
by steph38
Hi,

Is there any possibility to create an icon within a ribbon who does create a file where the name of this file is in the clipboard (file created in the displayed folder) ?
If yes, how could I achieve this ?

Today, I am using the "New file" icon, paste the name and set the file not to be opened in the editor (I only need the file name infos, no datas in the file)
Could it be possible to add the elements (clipboard content as name and do not open file as parameters to the existing icon/function in the ribbon ?

I've tried this in the command line :

Code: Select all

/Edit(New+NotOpen,Clipboard(Show))
But it does not work... (the NotOpen works !)

Thanks in advance for your help and advises,

Stéphane

Re: automatic file creation with the name in the clipboard

Posted: 12 Jan 2021 14:51
by oMega Support
Add a button to the ribbon.
In Tools Designer specify for it:
Command: new-item
Parameters: $(Get-Clipboard)
In Window dropdown: Select two options: Hide the window; Execute in PowerShell window (close on completion)
Assign a Hotkey if you want to avoid clicking the button every time.

Re: automatic file creation with the name in the clipboard

Posted: 12 Jan 2021 17:40
by steph38
Hello,

Perfect ! Works as expected !
Many thanks for your help !

Stéphane